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

Support t parameter using media fragments

This commit is contained in:
Cadence Ember 2021-01-14 00:55:31 +13:00
parent 36f33b9f7e
commit bb4816c4b3
No known key found for this signature in database
GPG key ID: BC1C2C61CF521B17
3 changed files with 56 additions and 4 deletions

View file

@ -22,7 +22,7 @@ block content
- const format = sortedFormatStreams[0]
if format
video(controls preload="auto" poster=`/vi/${video.videoId}/maxresdefault.jpg` width=format.second__width height=format.second__height data-itag=format.itag)#video.video
source(src=format.url type=format.type)
source(src=format.url+mediaFragment type=format.type)
else
video(src="")#video.video
.stream-notice The server provided no playback streams.