1
0
Fork 0
mirror of https://git.sr.ht/~cadence/cloudtube synced 2026-03-02 02:31:35 +00:00

Fix #14 implement video autoplay with URL parameter

Fixes https://todo.sr.ht/~cadence/tube/14
This commit is contained in:
Lomanic 2021-04-26 08:42:42 +02:00 committed by Cadence Ember
parent d1e2202cae
commit 8292c8db57
No known key found for this signature in database
GPG key ID: BC1C2C61CF521B17
2 changed files with 3 additions and 2 deletions

View file

@ -24,7 +24,7 @@ block content
.video-container
- const format = formats[0]
if format
video(controls preload="auto" width=format.second__width height=format.second__height data-itag=format.itag autoplay=continuous)#video.video
video(controls preload="auto" width=format.second__width height=format.second__height data-itag=format.itag autoplay=continuous||autoplay)#video.video
source(src=format.url+mediaFragment type=format.type)
each t in video.captions
track(label=t.label kind="subtitles" srclang=t.languageCode src=t.url)