Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed captions are not being rendered in v1.0.7 for encrypted HLS stream. Same is not issue in v0.14.17 version of hls.js #4182

Closed
5 tasks done
viswanadhbysani opened this issue Jul 28, 2021 · 5 comments · Fixed by #4554
Labels
Milestone

Comments

@viswanadhbysani
Copy link

What version of Hls.js are you using?

v1.0.7

What browser (including version) are you using?

Chrome v92.0.4515.107 (Official Build) (64-bit), also all other major browsers Edge, FF etc.

What OS (including version) are you using?

Windows 10

Test stream

No response

Configuration

{}

Additional player setup steps

No response

Checklist

Steps to reproduce

While using the encrypted HLS stream (AES-128), closed captions (webvtt) are not being rendered by the latest version of hls.js i.e. v1.0.7.

This issue is not present with v0.14.17 of hls.js

Also latest version 1.0.7 of hls.js is able to render the closed captions if the HLS is not encrypted.

Please see below screenshot which shows the vtt related m3u8's being downloaded, however player is not requesting the respective vtt requests.

image

Expected behaviour

While using the HLS encryption (AES-128), along with Closed captions (webvtt), the hls.js player should render the closed captions.

This is working as expected in v0.14.17 version of hls.js

What actually happened?

we tried to upgrade hls.js from v0.14.17 to latest v1.0.7 and we encountered this issue while doing sanity

Console output

********************* Format: media.formattype.hls *********************
Stream format is HLS
m(9) [div.programViews, div.programComments, div.attributeOuter, div.attributeOuter, div.attributeOuter, div.attributeOuter, div.attributeOuter, div.attributeOuter, div.attributeOuter]
m [td.name.selected]
******** Loading HTML5 HLS.js player version: 1.0.7 *******
Selecting next item for playback
Opening https://kasi.qumu.media/viewerportal/defaultdomain/contentprovider.do?eventContentId=association:118548&schedOccurId=schedoccur:1:fnd_sched:49504&playerType=html5&_sessNetCtx=true&outputFormat=HLS&ext=.m3u8
HLSJS: _openPlaylistItem with hls js....https://kasi.qumu.media/viewerportal/defaultdomain/contentprovider.do?eventContentId=association:118548&schedOccurId=schedoccur:1:fnd_sched:49504&playerType=html5&_sessNetCtx=true&outputFormat=HLS&ext=.m3u8
Trying to load : Open timeout from settings:45000
m []
Questions: oldBcastState = UNKNOWN, newBcastState = STARTED
_me_emptied
Got event: manifest parsed
[]
Got event: level switching
levelLoaded--> {url: "https://idc-vne6w-02.qumu.media:443/qumu_hls/9862b…uyaBgM.AAAALw&deliveryId=dlvryimpl_ve_device:6601", level: 3, id: 0, deliveryDirectives: null}
_me_loadstart
_me_durationchange
_me_durationchange
levelLoaded--> {url: "https://idc-vne6w-02.qumu.media/qumu_hls/9862b50e-…uyaBgM.AAAALw&deliveryId=dlvryimpl_ve_device:6601", level: 3, id: 0, deliveryDirectives: t}
_me_durationchange
_me_durationchange
New event: video current time: 0; eventTime(offset millis): 0; evtType: slide; evt: slide://0
Slide: https://idc-vne6w-02.qumu.media:443/qumu_http/77/7775f645-8697-47b3-b821-6f962e77361c/Slide0.jpg?tok=ALONgSGOxUuAmv52DgAqIi4qUGORrd9vjkgstbp83qYYvtUJtg.HvxthTc6cto.AAABeuyaY7w.AAAADg
HLSJS: Buffer appended -  hlsBufferAppended {type: "audio", frag: e, part: null, chunkMeta: {…}, parent: "main", …}
HLSJS: Buffer appended -  hlsBufferAppended {type: "video", frag: e, part: null, chunkMeta: {…}, parent: "main", …}
_me_durationchange
_me_durationchange
_me_loadedmetadata
HLSJS: Buffer appended -  hlsBufferAppended {type: "audio", frag: e, part: null, chunkMeta: {…}, parent: "main", …}
HLSJS: Buffer appended -  hlsBufferAppended {type: "video", frag: e, part: null, chunkMeta: {…}, parent: "main", …}
Got event: level switching
levelLoaded--> {url: "https://idc-vne6w-02.qumu.media:443/qumu_hls/9862b…uyaBgM.AAAALw&deliveryId=dlvryimpl_ve_device:6601", level: 1, id: 0, deliveryDirectives: null}
HLSJS: buffer (n) start end:  ( 0 )  72.091746   84.083999
HLSJS: current time:  81.1243
HLSJS: buffer 3
HLSJS: bandwidth 0.735
HLSJS: latency 519
HLSJS: download 18.45
_me_seeking
HLSJS: buffer (n) start end:  ( 0 )  72.091746   84.083999
HLSJS: current time:  81.1243
_me_seeked
Starting initial playback
it is chrome >= 66 or latest firefox, so checking if it can autoplay
Autoplay was prevented.
old viewState = 1, new viewState = 5
Got event: level switched
old BR: 1040
new BR: 1040
_me_canplay
HLSJS: buffer (n) start end:  ( 0 )  72.091746   84.083999
HLSJS: current time:  81.1243
_me_canplaythrough
it is chrome >= 66 or latest firefox, so checking if it can autoplay
url being played:  ["https://idc-vne6w-02.qumu.media:443/qumu_hls/9862b…uyaBgM.AAAALw&deliveryId=dlvryimpl_ve_device:6601"]
_me_play
url being played:  ["https://idc-vne6w-02.qumu.media:443/qumu_hls/9862b…uyaBgM.AAAALw&deliveryId=dlvryimpl_ve_device:6601"]
_me_play
_me_playing
Autoplay started!
old viewState = 5, new viewState = 3
total watch time :  0 secs
total watch time :  1.754 secs
_me_waiting
Error from HLS player:  hlsError  - Details:  {type: "mediaError", details: "bufferStalledError", fatal: false, buffer: 0.030875000000008868}buffer: 0.030875000000008868details: "bufferStalledError"fatal: falsetype: "mediaError"[[Prototype]]: Objectconstructor: ƒ Object()hasOwnProperty: ƒ hasOwnProperty()isPrototypeOf: ƒ isPrototypeOf()propertyIsEnumerable: ƒ propertyIsEnumerable()toLocaleString: ƒ toLocaleString()toString: ƒ toString()valueOf: ƒ valueOf()__defineGetter__: ƒ __defineGetter__()__defineSetter__: ƒ __defineSetter__()__lookupGetter__: ƒ __lookupGetter__()__lookupSetter__: ƒ __lookupSetter__()get __proto__: ƒ __proto__()set __proto__: ƒ __proto__()
HLSJS: Buffer appended -  hlsBufferAppended {type: "audio", frag: e, part: null, chunkMeta: {…}, parent: "main", …}
HLSJS: Buffer appended -  hlsBufferAppended {type: "video", frag: e, part: null, chunkMeta: {…}, parent: "main", …}
HLSJS: Buffer appended -  hlsBufferAppended {type: "audio", frag: e, part: null, chunkMeta: {…}, parent: "main", …}
HLSJS: Buffer appended -  hlsBufferAppended {type: "video", frag: e, part: null, chunkMeta: {…}, parent: "main", …}
HLSJS: buffer (n) start end:  ( 0 )  72.091746   96.095999
HLSJS: current time:  84.053124
HLSJS: buffer 12
HLSJS: bandwidth 0.82
HLSJS: latency 568
HLSJS: download 7.304
_me_canplay
HLSJS: buffer (n) start end:  ( 0 )  72.091746   96.095999
HLSJS: current time:  84.116675
_me_playing
Buffered:  1.783 secs
Got event: level switched
old BR: 1040
new BR: 454
total watch time :  2.972 secs
_me_canplaythrough
levelLoaded--> {url: "https://idc-vne6w-02.qumu.media/qumu_hls/9862b50e-…uyaBgM.AAAALw&deliveryId=dlvryimpl_ve_device:6601", level: 1, id: 0, deliveryDirectives: t}
_me_durationchange
_me_durationchange
HLSJS: Buffer appended -  hlsBufferAppended {type: "audio", frag: e, part: null, chunkMeta: {…}, parent: "main", …}
HLSJS: Buffer appended -  hlsBufferAppended {type: "video", frag: e, part: null, chunkMeta: {…}, parent: "main", …}
HLSJS: buffer (n) start end:  ( 0 )  72.091746   108.107999
HLSJS: current time:  89.396711
HLSJS: buffer 19
HLSJS: bandwidth 1.229
HLSJS: latency 260
HLSJS: download 5.021
HLSJS: Buffer appended -  hlsBufferAppended {type: "audio", frag: e, part: null, chunkMeta: {…}, parent: "main", …}
HLSJS: Buffer appended -  hlsBufferAppended {type: "video", frag: e, part: null, chunkMeta: {…}, parent: "main", …}
HLSJS: buffer (n) start end:  ( 0 )  72.091746   120.119999
HLSJS: current time:  95.095335
HLSJS: buffer 25
HLSJS: bandwidth 1.146
HLSJS: latency 265
HLSJS: download 5.367
HLSJS: Buffer appended -  hlsBufferAppended {type: "audio", frag: e, part: null, chunkMeta: {…}, parent: "main", …}
HLSJS: Buffer appended -  hlsBufferAppended {type: "video", frag: e, part: null, chunkMeta: {…}, parent: "main", …}
HLSJS: buffer (n) start end:  ( 0 )  72.091746   132.131999
HLSJS: current time:  100.038051
HLSJS: buffer 32
HLSJS: bandwidth 1.234
HLSJS: latency 265
HLSJS: download 4.627
levelLoaded--> {url: "https://idc-vne6w-02.qumu.media/qumu_hls/9862b50e-…uyaBgM.AAAALw&deliveryId=dlvryimpl_ve_device:6601", level: 1, id: 0, deliveryDirectives: t}
_me_durationchange
_me_durationchange
HLSJS: Buffer appended -  hlsBufferAppended {type: "audio", frag: e, part: null, chunkMeta: {…}, parent: "main", …}
HLSJS: Buffer appended -  hlsBufferAppended {type: "video", frag: e, part: null, chunkMeta: {…}, parent: "main", …}
HLSJS: buffer (n) start end:  ( 0 )  72.091746   144.143999
HLSJS: current time:  105.603353
HLSJS: buffer 39
HLSJS: bandwidth 1.142
HLSJS: latency 262
HLSJS: download 5.227
HLSJS: Buffer appended -  hlsBufferAppended {type: "audio", frag: e, part: null, chunkMeta: {…}, parent: "main", …}
_me_durationchange
_me_durationchange
HLSJS: Buffer appended -  hlsBufferAppended {type: "video", frag: e, part: null, chunkMeta: {…}, parent: "main", …}
HLSJS: buffer (n) start end:  ( 0 )  72.091746   156.155999
HLSJS: current time:  111.237415
HLSJS: buffer 45
HLSJS: bandwidth 1.089
HLSJS: latency 264
HLSJS: download 5.252
levelLoaded--> {url: "https://idc-vne6w-02.qumu.media/qumu_hls/9862b50e-…uyaBgM.AAAALw&deliveryId=dlvryimpl_ve_device:6601", level: 1, id: 0, deliveryDirectives: t}
_me_durationchange
_me_durationchange
total watch time :  33.823 secs
HLSJS: Buffer appended -  hlsBufferAppended {type: "audio", frag: e, part: null, chunkMeta: {…}, parent: "main", …}
HLSJS: Buffer appended -  hlsBufferAppended {type: "video", frag: e, part: null, chunkMeta: {…}, parent: "main", …}
HLSJS: buffer (n) start end:  ( 0 )  72.091746   168.167999
HLSJS: current time:  121.785329
HLSJS: buffer 46
HLSJS: bandwidth 0.815
HLSJS: latency 270
HLSJS: download 7.522
levelLoaded--> {url: "https://idc-vne6w-02.qumu.media/qumu_hls/9862b50e-…uyaBgM.AAAALw&deliveryId=dlvryimpl_ve_device:6601", level: 1, id: 0, deliveryDirectives: t}
_me_durationchange
_me_durationchange
HLSJS: Buffer appended -  hlsBufferAppended {type: "audio", frag: e, part: null, chunkMeta: {…}, parent: "main", …}
_me_durationchange
_me_durationchange
HLSJS: Buffer appended -  hlsBufferAppended {type: "video", frag: e, part: null, chunkMeta: {…}, parent: "main", …}
HLSJS: buffer (n) start end:  ( 0 )  72.091746   180.179999
HLSJS: current time:  133.629085
HLSJS: buffer 47
HLSJS: bandwidth 0.88
HLSJS: latency 273
HLSJS: download 6.776
levelLoaded--> {url: "https://idc-vne6w-02.qumu.media/qumu_hls/9862b50e-…uyaBgM.AAAALw&deliveryId=dlvryimpl_ve_device:6601", level: 1, id: 0, deliveryDirectives: t}
_me_durationchange
_me_durationchange
HLSJS: Buffer appended -  hlsBufferAppended {type: "audio", frag: e, part: null, chunkMeta: {…}, parent: "main", …}
HLSJS: Buffer appended -  hlsBufferAppended {type: "video", frag: e, part: null, chunkMeta: {…}, parent: "main", …}
HLSJS: buffer (n) start end:  ( 0 )  72.091746   192.191999
HLSJS: current time:  144.662848
HLSJS: buffer 48
HLSJS: bandwidth 1.133
HLSJS: latency 269
HLSJS: download 5.164
total watch time :  64.828 secs
HLSJS: Buffer appended -  hlsBufferAppended {type: "audio", frag: e, part: null, chunkMeta: {…}, parent: "main", …}
HLSJS: Buffer appended -  hlsBufferAppended {type: "video", frag: e, part: null, chunkMeta: {…}, parent: "main", …}
HLSJS: buffer (n) start end:  ( 0 )  72.091746   204.203999
HLSJS: current time:  150.445392
HLSJS: buffer 54
HLSJS: bandwidth 1.131
HLSJS: latency 266
HLSJS: download 5.448
levelLoaded--> {url: "https://idc-vne6w-02.qumu.media/qumu_hls/9862b50e-…uyaBgM.AAAALw&deliveryId=dlvryimpl_ve_device:6601", level: 1, id: 0, deliveryDirectives: t}
_me_durationchange
_me_durationchange
HLSJS: Buffer appended -  hlsBufferAppended {type: "audio", frag: e, part: null, chunkMeta: {…}, parent: "main", …}
_me_durationchange
_me_durationchange
HLSJS: Buffer appended -  hlsBufferAppended {type: "video", frag: e, part: null, chunkMeta: {…}, parent: "main", …}
HLSJS: buffer (n) start end:  ( 0 )  72.091746   216.215999
HLSJS: current time:  157.46282
HLSJS: buffer 59
HLSJS: bandwidth 1.078
HLSJS: latency 274
HLSJS: download 5.397
levelLoaded--> {url: "https://idc-vne6w-02.qumu.media/qumu_hls/9862b50e-…uyaBgM.AAAALw&deliveryId=dlvryimpl_ve_device:6601", level: 1, id: 0, deliveryDirectives: t}
_me_durationchange
_me_durationchange
HLSJS: Buffer appended -  hlsBufferAppended {type: "audio", frag: e, part: null, chunkMeta: {…}, parent: "main", …}
_me_durationchange
_me_durationchange
HLSJS: Buffer appended -  hlsBufferAppended {type: "video", frag: e, part: null, chunkMeta: {…}, parent: "main", …}
HLSJS: buffer (n) start end:  ( 0 )  72.091746   228.227999
HLSJS: current time:  170.038103
HLSJS: buffer 58
HLSJS: bandwidth 1.107
HLSJS: latency 275
HLSJS: download 5.402
levelLoaded--> {url: "https://idc-vne6w-02.qumu.media/qumu_hls/9862b50e-…uyaBgM.AAAALw&deliveryId=dlvryimpl_ve_device:6601", level: 1, id: 0, deliveryDirectives: t}
total watch time :  95.822 secs
_me_durationchange
_me_durationchange
HLSJS: Buffer appended -  hlsBufferAppended {type: "audio", frag: e, part: null, chunkMeta: {…}, parent: "main", …}
HLSJS: Buffer appended -  hlsBufferAppended {type: "video", frag: e, part: null, chunkMeta: {…}, parent: "main", …}
HLSJS: buffer (n) start end:  ( 0 )  72.091746   240.239999
HLSJS: current time:  184.22164
HLSJS: buffer 56
HLSJS: bandwidth 0.859
HLSJS: latency 269
HLSJS: download 7
levelLoaded--> {url: "https://idc-vne6w-02.qumu.media/qumu_hls/9862b50e-…uyaBgM.AAAALw&deliveryId=dlvryimpl_ve_device:6601", level: 1, id: 0, deliveryDirectives: t}
_me_durationchange
_me_durationchange
HLSJS: Buffer appended -  hlsBufferAppended {type: "audio", frag: e, part: null, chunkMeta: {…}, parent: "main", …}
_me_durationchange
_me_durationchange
HLSJS: Buffer appended -  hlsBufferAppended {type: "video", frag: e, part: null, chunkMeta: {…}, parent: "main", …}
HLSJS: buffer (n) start end:  ( 0 )  72.091746   252.251999
HLSJS: current time:  195.54238
HLSJS: buffer 57
HLSJS: bandwidth 1.05
HLSJS: latency 270
HLSJS: download 5.663
levelLoaded--> {url: "https://idc-vne6w-02.qumu.media/qumu_hls/9862b50e-…uyaBgM.AAAALw&deliveryId=dlvryimpl_ve_device:6601", level: 1, id: 0, deliveryDirectives: t}
_me_durationchange
_me_durationchange
HLSJS: Buffer appended -  hlsBufferAppended {type: "audio", frag: e, part: null, chunkMeta: {…}, parent: "main", …}
_me_durationchange
_me_durationchange
HLSJS: Buffer appended -  hlsBufferAppended {type: "video", frag: e, part: null, chunkMeta: {…}, parent: "main", …}
HLSJS: buffer (n) start end:  ( 0 )  72.091746   264.263999
HLSJS: current time:  207.686514
HLSJS: buffer 57
HLSJS: bandwidth 1.137
HLSJS: latency 269
HLSJS: download 5.278
total watch time :  126.826 secs
levelLoaded--> {url: "https://idc-vne6w-02.qumu.media/qumu_hls/9862b50e-…uyaBgM.AAAALw&deliveryId=dlvryimpl_ve_device:6601", level: 1, id: 0, deliveryDirectives: t}
_me_durationchange
_me_durationchange
HLSJS: Buffer appended -  hlsBufferAppended {type: "audio", frag: e, part: null, chunkMeta: {…}, parent: "main", …}
HLSJS: Buffer appended -  hlsBufferAppended {type: "video", frag: e, part: null, chunkMeta: {…}, parent: "main", …}
HLSJS: buffer (n) start end:  ( 0 )  72.091746   276.275999
HLSJS: current time:  220.381799
HLSJS: buffer 56
HLSJS: bandwidth 1.125
HLSJS: latency 270
HLSJS: download 5.383
levelLoaded--> {url: "https://idc-vne6w-02.qumu.media/qumu_hls/9862b50e-…uyaBgM.AAAALw&deliveryId=dlvryimpl_ve_device:6601", level: 1, id: 0, deliveryDirectives: t}
_me_durationchange
_me_durationchange
HLSJS: Buffer appended -  hlsBufferAppended {type: "audio", frag: e, part: null, chunkMeta: {…}, parent: "main", …}
_me_durationchange
_me_durationchange
HLSJS: Buffer appended -  hlsBufferAppended {type: "video", frag: e, part: null, chunkMeta: {…}, parent: "main", …}
HLSJS: buffer (n) start end:  ( 0 )  72.091746   288.287999
HLSJS: current time:  232.986564
HLSJS: buffer 55
HLSJS: bandwidth 1.11
HLSJS: latency 270
HLSJS: download 5.399
total watch time :  157.83 secs
levelLoaded--> {url: "https://idc-vne6w-02.qumu.media/qumu_hls/9862b50e-…uyaBgM.AAAALw&deliveryId=dlvryimpl_ve_device:6601", level: 1, id: 0, deliveryDirectives: t}
_me_durationchange
_me_durationchange
HLSJS: Buffer appended -  hlsBufferAppended {type: "audio", frag: e, part: null, chunkMeta: {…}, parent: "main", …}
_me_durationchange
_me_durationchange
HLSJS: Buffer appended -  hlsBufferAppended {type: "video", frag: e, part: null, chunkMeta: {…}, parent: "main", …}
HLSJS: buffer (n) start end:  ( 0 )  72.091746   300.299999
HLSJS: current time:  245.427099
HLSJS: buffer 55
HLSJS: bandwidth 1.151
HLSJS: latency 271
HLSJS: download 5.201
levelLoaded--> {url: "https://idc-vne6w-02.qumu.media/qumu_hls/9862b50e-…uyaBgM.AAAALw&deliveryId=dlvryimpl_ve_device:6601", level: 1, id: 0, deliveryDirectives: t}
_me_durationchange
_me_durationchange
HLSJS: Buffer appended -  hlsBufferAppended {type: "audio", frag: e, part: null, chunkMeta: {…}, parent: "main", …}
HLSJS: Buffer appended -  hlsBufferAppended {type: "video", frag: e, part: null, chunkMeta: {…}, parent: "main", …}
HLSJS: buffer (n) start end:  ( 0 )  72.091746   312.311999
HLSJS: current time:  258.08184
HLSJS: buffer 54
HLSJS: bandwidth 1.14
HLSJS: latency 270
HLSJS: download 5.271
levelLoaded--> {url: "https://idc-vne6w-02.qumu.media/qumu_hls/9862b50e-…uyaBgM.AAAALw&deliveryId=dlvryimpl_ve_device:6601", level: 1, id: 0, deliveryDirectives: t}
_me_durationchange
_me_durationchange
total watch time :  188.819 secs
HLSJS: Buffer appended -  hlsBufferAppended {type: "audio", frag: e, part: null, chunkMeta: {…}, parent: "main", …}
_me_durationchange
_me_durationchange
HLSJS: Buffer appended -  hlsBufferAppended {type: "video", frag: e, part: null, chunkMeta: {…}, parent: "main", …}
HLSJS: buffer (n) start end:  ( 0 )  72.091746   324.323999
HLSJS: current time:  270.863103
HLSJS: buffer 53
HLSJS: bandwidth 1.118
HLSJS: latency 269
HLSJS: download 5.409
levelLoaded--> {url: "https://idc-vne6w-02.qumu.media/qumu_hls/9862b50e-…uyaBgM.AAAALw&deliveryId=dlvryimpl_ve_device:6601", level: 1, id: 0, deliveryDirectives: t}
_me_durationchange
_me_durationchange
HLSJS: Buffer appended -  hlsBufferAppended {type: "audio", frag: e, part: null, chunkMeta: {…}, parent: "main", …}
_me_durationchange
_me_durationchange
HLSJS: Buffer appended -  hlsBufferAppended {type: "video", frag: e, part: null, chunkMeta: {…}, parent: "main", …}
HLSJS: buffer (n) start end:  ( 0 )  72.091746   336.335999
HLSJS: current time:  283.249168
HLSJS: buffer 53
HLSJS: bandwidth 1.119
HLSJS: latency 270
HLSJS: download 5.201
levelLoaded--> {url: "https://idc-vne6w-02.qumu.media/qumu_hls/9862b50e-…uyaBgM.AAAALw&deliveryId=dlvryimpl_ve_device:6601", level: 1, id: 0, deliveryDirectives: t}
_me_durationchange
_me_durationchange
HLSJS: Buffer appended -  hlsBufferAppended {type: "audio", frag: e, part: null, chunkMeta: {…}, parent: "main", …}
HLSJS: Buffer appended -  hlsBufferAppended {type: "video", frag: e, part: null, chunkMeta: {…}, parent: "main", …}
HLSJS: buffer (n) start end:  ( 0 )  72.091746   348.347999
HLSJS: current time:  295.97103
HLSJS: buffer 52
HLSJS: bandwidth 1.133
HLSJS: latency 270
HLSJS: download 5.393
total watch time :  218.829 secs
levelLoaded--> {url: "https://idc-vne6w-02.qumu.media/qumu_hls/9862b50e-…uyaBgM.AAAALw&deliveryId=dlvryimpl_ve_device:6601", level: 1, id: 0, deliveryDirectives: t}
_me_durationchange
_me_durationchange
HLSJS: Buffer appended -  hlsBufferAppended {type: "audio", frag: e, part: null, chunkMeta: {…}, parent: "main", …}
_me_durationchange
_me_durationchange
HLSJS: Buffer appended -  hlsBufferAppended {type: "video", frag: e, part: null, chunkMeta: {…}, parent: "main", …}
HLSJS: buffer (n) start end:  ( 0 )  72.091746   360.359999
HLSJS: current time:  308.362614
HLSJS: buffer 52
HLSJS: bandwidth 1.142
HLSJS: latency 268
HLSJS: download 5.184
levelLoaded--> {url: "https://idc-vne6w-02.qumu.media/qumu_hls/9862b50e-…uyaBgM.AAAALw&deliveryId=dlvryimpl_ve_device:6601", level: 1, id: 0, deliveryDirectives: t}
_me_durationchange
_me_durationchange
HLSJS: Buffer appended -  hlsBufferAppended {type: "audio", frag: e, part: null, chunkMeta: {…}, parent: "main", …}
HLSJS: Buffer appended -  hlsBufferAppended {type: "video", frag: e, part: null, chunkMeta: {…}, parent: "main", …}
HLSJS: buffer (n) start end:  ( 0 )  72.091746   372.371999
HLSJS: current time:  322.114439
HLSJS: buffer 50
HLSJS: bandwidth 0.951
HLSJS: latency 270
HLSJS: download 6.335
levelLoaded--> {url: "https://idc-vne6w-02.qumu.media/qumu_hls/9862b50e-…uyaBgM.AAAALw&deliveryId=dlvryimpl_ve_device:6601", level: 1, id: 0, deliveryDirectives: t}
_me_durationchange
_me_durationchange
total watch time :  249.819 secs
HLSJS: Buffer appended -  hlsBufferAppended {type: "audio", frag: e, part: null, chunkMeta: {…}, parent: "main", …}
_me_durationchange
_me_durationchange
HLSJS: Buffer appended -  hlsBufferAppended {type: "video", frag: e, part: null, chunkMeta: {…}, parent: "main", …}
HLSJS: buffer (n) start end:  ( 0 )  72.091746   384.383999
HLSJS: current time:  333.310273
HLSJS: buffer 51
HLSJS: bandwidth 1.22
HLSJS: latency 270
HLSJS: download 4.929
levelLoaded--> {url: "https://idc-vne6w-02.qumu.media/qumu_hls/9862b50e-…uyaBgM.AAAALw&deliveryId=dlvryimpl_ve_device:6601", level: 1, id: 0, deliveryDirectives: t}
_me_durationchange
_me_durationchange
HLSJS: Buffer appended -  hlsBufferAppended {type: "audio", frag: e, part: null, chunkMeta: {…}, parent: "main", …}
_me_durationchange
_me_durationchange
HLSJS: Buffer appended -  hlsBufferAppended {type: "video", frag: e, part: null, chunkMeta: {…}, parent: "main", …}
HLSJS: buffer (n) start end:  ( 0 )  72.091746   396.395999
HLSJS: current time:  348.016514
HLSJS: buffer 48
HLSJS: bandwidth 0.859
HLSJS: latency 269
HLSJS: download 6.992
levelLoaded--> {url: "https://idc-vne6w-02.qumu.media/qumu_hls/9862b50e-…uyaBgM.AAAALw&deliveryId=dlvryimpl_ve_device:6601", level: 1, id: 0, deliveryDirectives: t}
_me_durationchange
_me_durationchange
HLSJS: Buffer appended -  hlsBufferAppended {type: "audio", frag: e, part: null, chunkMeta: {…}, parent: "main", …}
HLSJS: Buffer appended -  hlsBufferAppended {type: "video", frag: e, part: null, chunkMeta: {…}, parent: "main", …}
HLSJS: buffer (n) start end:  ( 0 )  72.091746   408.407999
HLSJS: current time:  358.85315
HLSJS: buffer 50
HLSJS: bandwidth 1.123
HLSJS: latency 261
HLSJS: download 5.284
total watch time :  279.826 secs
levelLoaded--> {url: "https://idc-vne6w-02.qumu.media/qumu_hls/9862b50e-…uyaBgM.AAAALw&deliveryId=dlvryimpl_ve_device:6601", level: 1, id: 0, deliveryDirectives: t}
_me_durationchange
_me_durationchange
HLSJS: Buffer appended -  hlsBufferAppended {type: "audio", frag: e, part: null, chunkMeta: {…}, parent: "main", …}
_me_durationchange
_me_durationchange
HLSJS: Buffer appended -  hlsBufferAppended {type: "video", frag: e, part: null, chunkMeta: {…}, parent: "main", …}
HLSJS: buffer (n) start end:  ( 0 )  72.091746   420.419999
HLSJS: current time:  371.442077
HLSJS: buffer 49
HLSJS: bandwidth 1.131
HLSJS: latency 270
HLSJS: download 5.318
levelLoaded--> {url: "https://idc-vne6w-02.qumu.media/qumu_hls/9862b50e-…uyaBgM.AAAALw&deliveryId=dlvryimpl_ve_device:6601", level: 1, id: 0, deliveryDirectives: t}
_me_durationchange
_me_durationchange
HLSJS: Buffer appended -  hlsBufferAppended {type: "audio", frag: e, part: null, chunkMeta: {…}, parent: "main", …}
_me_durationchange
_me_durationchange
HLSJS: Buffer appended -  hlsBufferAppended {type: "video", frag: e, part: null, chunkMeta: {…}, parent: "main", …}
HLSJS: buffer (n) start end:  ( 0 )  72.091746   432.431999
HLSJS: current time:  384.030608
HLSJS: buffer 48
HLSJS: bandwidth 1.144
HLSJS: latency 274
HLSJS: download 5.275
levelLoaded--> {url: "https://idc-vne6w-02.qumu.media/qumu_hls/9862b50e-…uyaBgM.AAAALw&deliveryId=dlvryimpl_ve_device:6601", level: 1, id: 0, deliveryDirectives: t}
_me_durationchange
_me_durationchange
total watch time :  310.82 secs
HLSJS: Buffer appended -  hlsBufferAppended {type: "audio", frag: e, part: null, chunkMeta: {…}, parent: "main", …}
HLSJS: Buffer appended -  hlsBufferAppended {type: "video", frag: e, part: null, chunkMeta: {…}, parent: "main", …}
HLSJS: buffer (n) start end:  ( 0 )  72.091746   444.443999
HLSJS: current time:  397.047165
HLSJS: buffer 47
HLSJS: bandwidth 1.059
HLSJS: latency 270
HLSJS: download 5.694
HLSJS: Buffer appended -  hlsBufferAppended {type: "audio", frag: e, part: null, chunkMeta: {…}, parent: "main", …}
HLSJS: Buffer appended -  hlsBufferAppended {type: "video", frag: e, part: null, chunkMeta: {…}, parent: "main", …}
HLSJS: buffer (n) start end:  ( 0 )  72.091746   456.455999
HLSJS: current time:  402.393328
HLSJS: buffer 54
HLSJS: bandwidth 1.192
HLSJS: latency 266
HLSJS: download 5.021
levelLoaded--> {url: "https://idc-vne6w-02.qumu.media/qumu_hls/9862b50e-…uyaBgM.AAAALw&deliveryId=dlvryimpl_ve_device:6601", level: 1, id: 0, deliveryDirectives: t}
_me_durationchange
_me_durationchange
HLSJS: Buffer appended -  hlsBufferAppended {type: "audio", frag: e, part: null, chunkMeta: {…}, parent: "main", …}
_me_durationchange
_me_durationchange
HLSJS: Buffer appended -  hlsBufferAppended {type: "video", frag: e, part: null, chunkMeta: {…}, parent: "main", …}
HLSJS: buffer (n) start end:  ( 0 )  72.091746   468.467999
HLSJS: current time:  409.188818
HLSJS: buffer 59
HLSJS: bandwidth 1.15
HLSJS: latency 273
HLSJS: download 5.229
levelLoaded--> {url: "https://idc-vne6w-02.qumu.media/qumu_hls/9862b50e-…uyaBgM.AAAALw&deliveryId=dlvryimpl_ve_device:6601", level: 1, id: 0, deliveryDirectives: t}
_me_durationchange
_me_durationchange
HLSJS: Buffer appended -  hlsBufferAppended {type: "audio", frag: e, part: null, chunkMeta: {…}, parent: "main", …}
HLSJS: Buffer appended -  hlsBufferAppended {type: "video", frag: e, part: null, chunkMeta: {…}, parent: "main", …}
HLSJS: buffer (n) start end:  ( 0 )  72.091746   480.479999
HLSJS: current time:  421.75377
HLSJS: buffer 59
HLSJS: bandwidth 1.149
HLSJS: latency 270
HLSJS: download 5.262
total watch time :  340.822 secs
levelLoaded--> {url: "https://idc-vne6w-02.qumu.media/qumu_hls/9862b50e-…uyaBgM.AAAALw&deliveryId=dlvryimpl_ve_device:6601", level: 1, id: 0, deliveryDirectives: t}
_me_durationchange
_me_durationchange
HLSJS: Buffer appended -  hlsBufferAppended {type: "audio", frag: e, part: null, chunkMeta: {…}, parent: "main", …}
_me_durationchange
_me_durationchange
HLSJS: Buffer appended -  hlsBufferAppended {type: "video", frag: e, part: null, chunkMeta: {…}, parent: "main", …}
HLSJS: buffer (n) start end:  ( 0 )  72.091746   492.491999
HLSJS: current time:  434.50526
HLSJS: buffer 58
HLSJS: bandwidth 1.112
HLSJS: latency 267
HLSJS: download 5.391
levelLoaded--> {url: "https://idc-vne6w-02.qumu.media/qumu_hls/9862b50e-…uyaBgM.AAAALw&deliveryId=dlvryimpl_ve_device:6601", level: 1, id: 0, deliveryDirectives: t}
_me_durationchange
_me_durationchange
HLSJS: Buffer appended -  hlsBufferAppended {type: "audio", frag: e, part: null, chunkMeta: {…}, parent: "main", …}
_me_durationchange
_me_durationchange
HLSJS: Buffer appended -  hlsBufferAppended {type: "video", frag: e, part: null, chunkMeta: {…}, parent: "main", …}
HLSJS: buffer (n) start end:  ( 0 )  72.091746   504.503999
HLSJS: current time:  447.078326
HLSJS: buffer 57
HLSJS: bandwidth 1.123
HLSJS: latency 264
HLSJS: download 5.396
total watch time :  370.829 secs
levelLoaded--> {url: "https://idc-vne6w-02.qumu.media/qumu_hls/9862b50e-…uyaBgM.AAAALw&deliveryId=dlvryimpl_ve_device:6601", level: 1, id: 0, deliveryDirectives: t}
_me_durationchange
_me_durationchange
HLSJS: Buffer appended -  hlsBufferAppended {type: "audio", frag: e, part: null, chunkMeta: {…}, parent: "main", …}
HLSJS: Buffer appended -  hlsBufferAppended {type: "video", frag: e, part: null, chunkMeta: {…}, parent: "main", …}
HLSJS: buffer (n) start end:  ( 0 )  72.091746   516.515999
HLSJS: current time:  459.694461
HLSJS: buffer 57
HLSJS: bandwidth 1.114
HLSJS: latency 270
HLSJS: download 5.405
levelLoaded--> {url: "https://idc-vne6w-02.qumu.media/qumu_hls/9862b50e-…uyaBgM.AAAALw&deliveryId=dlvryimpl_ve_device:6601", level: 1, id: 0, deliveryDirectives: t}
_me_durationchange
_me_durationchange
HLSJS: Buffer appended -  hlsBufferAppended {type: "audio", frag: e, part: null, chunkMeta: {…}, parent: "main", …}
_me_durationchange
_me_durationchange
HLSJS: Buffer appended -  hlsBufferAppended {type: "video", frag: e, part: null, chunkMeta: {…}, parent: "main", …}
HLSJS: buffer (n) start end:  ( 0 )  72.091746   528.527999
HLSJS: current time:  474.824131
HLSJS: buffer 54
HLSJS: bandwidth 0.736
HLSJS: latency 270
HLSJS: download 7.947
levelLoaded--> {url: "https://idc-vne6w-02.qumu.media/qumu_hls/9862b50e-…uyaBgM.AAAALw&deliveryId=dlvryimpl_ve_device:6601", level: 1, id: 0, deliveryDirectives: t}
_me_durationchange
_me_durationchange
total watch time :  401.823 secs
HLSJS: Buffer appended -  hlsBufferAppended {type: "audio", frag: e, part: null, chunkMeta: {…}, parent: "main", …}
_me_durationchange
_me_durationchange
HLSJS: Buffer appended -  hlsBufferAppended {type: "video", frag: e, part: null, chunkMeta: {…}, parent: "main", …}
HLSJS: buffer (n) start end:  ( 0 )  72.091746   540.539999
HLSJS: current time:  485.599375
HLSJS: buffer 55
HLSJS: bandwidth 0.982
HLSJS: latency 264
HLSJS: download 6.157
levelLoaded--> {url: "https://idc-vne6w-02.qumu.media/qumu_hls/9862b50e-…uyaBgM.AAAALw&deliveryId=dlvryimpl_ve_device:6601", level: 1, id: 0, deliveryDirectives: t}
_me_durationchange
_me_durationchange
HLSJS: Buffer appended -  hlsBufferAppended {type: "audio", frag: e, part: null, chunkMeta: {…}, parent: "main", …}
HLSJS: Buffer appended -  hlsBufferAppended {type: "video", frag: e, part: null, chunkMeta: {…}, parent: "main", …}
HLSJS: buffer (n) start end:  ( 0 )  72.091746   552.551999
HLSJS: current time:  497.469473
HLSJS: buffer 55
HLSJS: bandwidth 1.105
HLSJS: latency 268
HLSJS: download 5.407
levelLoaded--> {url: "https://idc-vne6w-02.qumu.media/qumu_hls/9862b50e-…uyaBgM.AAAALw&deliveryId=dlvryimpl_ve_device:6601", level: 1, id: 0, deliveryDirectives: t}
_me_durationchange
_me_durationchange
HLSJS: Buffer appended -  hlsBufferAppended {type: "audio", frag: e, part: null, chunkMeta: {…}, parent: "main", …}
_me_durationchange
_me_durationchange
HLSJS: Buffer appended -  hlsBufferAppended {type: "video", frag: e, part: null, chunkMeta: {…}, parent: "main", …}
HLSJS: buffer (n) start end:  ( 0 )  72.091746   564.563999
HLSJS: current time:  509.53152
HLSJS: buffer 55
HLSJS: bandwidth 1.265
HLSJS: latency 270
HLSJS: download 4.893
total watch time :  431.83 secs
levelLoaded--> {url: "https://idc-vne6w-02.qumu.media/qumu_hls/9862b50e-…uyaBgM.AAAALw&deliveryId=dlvryimpl_ve_device:6601", level: 1, id: 0, deliveryDirectives: t}
_me_durationchange
_me_durationchange
HLSJS: Buffer appended -  hlsBufferAppended {type: "audio", frag: e, part: null, chunkMeta: {…}, parent: "main", …}
_me_durationchange
_me_durationchange
HLSJS: Buffer appended -  hlsBufferAppended {type: "video", frag: e, part: null, chunkMeta: {…}, parent: "main", …}
HLSJS: buffer (n) start end:  ( 0 )  72.091746   576.575999
HLSJS: current time:  522.372742
HLSJS: buffer 54
HLSJS: bandwidth 1.156
HLSJS: latency 271
HLSJS: download 5.136
levelLoaded--> {url: "https://idc-vne6w-02.qumu.media/qumu_hls/9862b50e-…uyaBgM.AAAALw&deliveryId=dlvryimpl_ve_device:6601", level: 1, id: 0, deliveryDirectives: t}
_me_durationchange
_me_durationchange
HLSJS: Buffer appended -  hlsBufferAppended {type: "audio", frag: e, part: null, chunkMeta: {…}, parent: "main", …}
HLSJS: Buffer appended -  hlsBufferAppended {type: "video", frag: e, part: null, chunkMeta: {…}, parent: "main", …}
HLSJS: buffer (n) start end:  ( 0 )  72.091746   588.587999
HLSJS: current time:  535.299657
HLSJS: buffer 53
HLSJS: bandwidth 1.082
HLSJS: latency 271
HLSJS: download 5.445
levelLoaded--> {url: "https://idc-vne6w-02.qumu.media/qumu_hls/9862b50e-…uyaBgM.AAAALw&deliveryId=dlvryimpl_ve_device:6601", level: 1, id: 0, deliveryDirectives: t}
_me_durationchange
_me_durationchange
m []
Questions: oldBcastState = STARTED, newBcastState = STOPPED
total watch time :  462.818 secs
HLSJS: Buffer appended -  hlsBufferAppended {type: "audio", frag: e, part: null, chunkMeta: {…}, parent: "main", …}
_me_durationchange
_me_durationchange
HLSJS: Buffer appended -  hlsBufferAppended {type: "video", frag: e, part: null, chunkMeta: {…}, parent: "main", …}
HLSJS: buffer (n) start end:  ( 0 )  72.091746   600.599999
HLSJS: current time:  548.443524
HLSJS: buffer 52
HLSJS: bandwidth 0.965
HLSJS: latency 269
HLSJS: download 6.021
levelLoaded--> {url: "https://idc-vne6w-02.qumu.media/qumu_hls/9862b50e-…uyaBgM.AAAALw&deliveryId=dlvryimpl_ve_device:6601", level: 1, id: 0, deliveryDirectives: t}
_me_durationchange
_me_durationchange
HLSJS: Buffer appended -  hlsBufferAppended {type: "audio", frag: e, part: null, chunkMeta: {…}, parent: "main", …}
HLSJS: Buffer appended -  hlsBufferAppended {type: "video", frag: e, part: null, chunkMeta: {…}, parent: "main", …}
HLSJS: buffer (n) start end:  ( 0 )  72.091746   612.611999
HLSJS: current time:  560.670385
HLSJS: buffer 52
HLSJS: bandwidth 1.05
HLSJS: latency 271
HLSJS: download 5.673
HLSJS: Buffer appended -  hlsBufferAppended {type: "audio", frag: e, part: null, chunkMeta: {…}, parent: "main", …}
HLSJS: Buffer appended -  hlsBufferAppended {type: "video", frag: e, part: null, chunkMeta: {…}, parent: "main", …}
HLSJS: buffer (n) start end:  ( 0 )  72.091746   618.364398
HLSJS: current time:  565.153768
HLSJS: buffer 53
HLSJS: bandwidth 0.723
HLSJS: latency 262
HLSJS: download 4.184
_me_durationchange
_me_durationchange
total watch time :  492.824 secs
total watch time :  522.832 secs
_me_pause
_me_ended
Ending with isError = false
old viewState = 3, new viewState = 4
position=618000 duration=NaN
total watch time :  537.306 secs

Chrome media internals output

No response

@viswanadhbysani viswanadhbysani added Bug Needs Triage If there is a suspected stream issue, apply this label to triage if it is something we should fix. labels Jul 28, 2021
@phloxic
Copy link
Contributor

phloxic commented Jan 19, 2022

I ran into this too and have set up 2 pages with the same stream for comparison:

@mtoczko
Copy link
Collaborator

mtoczko commented Jan 21, 2022

I found the bugs, but I don't have time to do PR.
@robwalch You can verify?
@phloxic You can provide a stream on a server without cros / domain verification

  1. SubtitleStreamController
    fragCurrent must by set befor send event this.hls.trigger(Events.KEY_LOADING, { frag: foundFrag });
    onKeyLoaded(event: Events.KEY_LOADED, data: KeyLoadedData) {
    if (
    this.state !== State.KEY_LOADING ||
    data.frag !== this.fragCurrent ||
    !this.levels
    ) {
    return;
    }
    this.state = State.IDLE;
    const levelDetails = this.levels[data.frag.level].details;
    if (levelDetails) {
    this.loadFragment(data.frag, levelDetails, data.frag.start);
    }
    }

Without the fragment fragCurrent will not load frames

if (foundFrag?.encrypted) {
logger.log(`Loading key for ${foundFrag.sn}`);
this.state = State.KEY_LOADING;
this.hls.trigger(Events.KEY_LOADING, { frag: foundFrag });

fix

 if (foundFrag?.encrypted) {
        this.loadKey(foundFrag , trackDetails)
  1. TimelineController
    0.14.7
    onFragDecrypted (data: { frag: Fragment, payload: any}) {
    const { frag, payload } = data;
    if (frag.type === 'subtitle') {
    if (!Number.isFinite(this.initPTS[frag.cc])) {
    this.unparsedVttFrags.push(data);
    return;
    }
    this._parseVTTs(frag, payload);
    }
    }

    vs.
    1.1.3
    private onFragDecrypted(
    event: Events.FRAG_DECRYPTED,
    data: FragDecryptedData
    ) {
    const { frag } = data;
    if (frag.type === PlaylistLevelType.SUBTITLE) {
    if (!Number.isFinite(this.initPTS[frag.cc])) {
    this.unparsedVttFrags.push(data as unknown as FragLoadedData);
    return;
    }
    this.onFragLoaded(Events.FRAG_LOADED, data as unknown as FragLoadedData);
    }
    }

This condition will only work with the 0.14.7 version, which calls the function directly after onFragDecrypted this._parseVTTs(frag, payload);

if (
decryptData == null ||
decryptData.key == null ||
decryptData.method !== 'AES-128'
) {

Data takes two types

private onFragLoaded(event: Events.FRAG_LOADED, data: FragLoadedData) {

  private onFragLoaded(event: Events.FRAG_LOADED, data: FragLoadedData | FragDecryptedData) {

You have to separate the two types. For example
isDecrypted = if data is FragDecryptedData

   decryptData == null || 
   decryptData.key == null || 
   decryptData.method !== 'AES-128' ||
   isDecrypted
 ) { 

@phloxic
Copy link
Contributor

phloxic commented Feb 10, 2022 via email

@phloxic
Copy link
Contributor

phloxic commented Feb 10, 2022

Maybe #4530 plays a small part in this too.

@phloxic
Copy link
Contributor

phloxic commented Feb 10, 2022

Test clip in hls.js demo:

@robwalch robwalch removed the Needs Triage If there is a suspected stream issue, apply this label to triage if it is something we should fix. label Feb 10, 2022
@robwalch robwalch added this to the 1.2.0 milestone Feb 10, 2022
@robwalch robwalch linked a pull request Feb 10, 2022 that will close this issue
3 tasks
@robwalch robwalch modified the milestones: 1.2.0, 1.1.4 Feb 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants