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
844d2661
authored
2014-06-20 15:27:19 -0400
by
Gary Katsevman
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Add discontinuity to the m3u8 parser
1 parent
5a036701
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
src/m3u8/m3u8-parser.js
src/m3u8/m3u8-parser.js
View file @
844d266
...
...
@@ -273,6 +273,14 @@
});
return
;
}
match
=
(
/^#EXT-X-DISCONTINUITY/
).
exec
(
line
);
if
(
match
)
{
this
.
trigger
(
'data'
,
{
type
:
'tag'
,
tagType
:
'discontinuity'
});
return
;
}
// unknown tag type
this
.
trigger
(
'data'
,
{
...
...
@@ -399,6 +407,9 @@
currentUri
.
attributes
=
mergeOptions
(
currentUri
.
attributes
,
entry
.
attributes
);
},
'discontinuity'
:
function
()
{
currentUri
.
discontinuity
=
true
;
},
'targetduration'
:
function
()
{
if
(
!
isFinite
(
entry
.
duration
)
||
entry
.
duration
<
0
)
{
this
.
trigger
(
'warn'
,
{
...
...
Please
register
or
sign in
to post a comment