Added parsing of PRIV tags
Showing
1 changed file
with
1 additions
and
1 deletions
... | @@ -118,7 +118,7 @@ videojs.Hls.prototype.src = function(src) { | ... | @@ -118,7 +118,7 @@ videojs.Hls.prototype.src = function(src) { |
118 | for (i = 0; i < metadata.frames.length; i++) { | 118 | for (i = 0; i < metadata.frames.length; i++) { |
119 | frame = metadata.frames[i]; | 119 | frame = metadata.frames[i]; |
120 | time = metadata.pts / 1000; | 120 | time = metadata.pts / 1000; |
121 | textTrack.addCue(new window.VTTCue(time, time, frame.value || frame.url)); | 121 | textTrack.addCue(new window.VTTCue(time, time, frame.value || frame.url || frame.id === 'PRIV' && String.fromCharCode.apply(null, frame.data))); |
122 | } | 122 | } |
123 | }); | 123 | }); |
124 | })(); | 124 | })(); | ... | ... |
-
Please register or sign in to post a comment