Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
brainfood
/
videojs-contrib-hls
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
2a97d7fd
authored
2015-04-30 16:24:45 -0400
by
oldcookie
Committed by
David LaPalomento
2015-05-07 14:34:02 -0400
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Added parsing of PRIV tags
1 parent
1811ffc3
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
src/videojs-hls.js
src/videojs-hls.js
View file @
2a97d7f
...
...
@@ -118,7 +118,7 @@ videojs.Hls.prototype.src = function(src) {
for
(
i
=
0
;
i
<
metadata
.
frames
.
length
;
i
++
)
{
frame
=
metadata
.
frames
[
i
];
time
=
metadata
.
pts
/
1000
;
textTrack
.
addCue
(
new
window
.
VTTCue
(
time
,
time
,
frame
.
value
||
frame
.
url
));
textTrack
.
addCue
(
new
window
.
VTTCue
(
time
,
time
,
frame
.
value
||
frame
.
url
||
frame
.
id
===
'PRIV'
&&
String
.
fromCharCode
.
apply
(
null
,
frame
.
data
)
));
}
});
})();
...
...
Please
register
or
sign in
to post a comment