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
dc304941
authored
2014-01-06 13:07:15 -0800
by
Tom Johnson
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
syntax update
1 parent
2c75f66c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
src/m3u8/m3u8-parser.js
src/m3u8/m3u8-parser.js
View file @
dc30494
...
...
@@ -374,8 +374,9 @@
this
.
manifest
.
targetDuration
=
entry
.
duration
;
},
'endlist'
:
function
()
{
var
calculatedDuration
=
0
;
for
(
var
i
=
0
;
i
<
this
.
manifest
.
segments
.
length
;
i
++
)
{
var
calculatedDuration
=
0
,
i
;
for
(
i
=
0
;
i
<
this
.
manifest
.
segments
.
length
;
i
++
)
{
if
(
this
.
manifest
.
segments
[
i
].
duration
)
{
calculatedDuration
+=
this
.
manifest
.
segments
[
i
].
duration
;
}
else
if
(
this
.
manifest
.
targetDuration
)
{
...
...
Please
register
or
sign in
to post a comment