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
4e0ea0a2
authored
2014-10-14 15:28:16 -0700
by
Tom Johnson
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
update for zero duration segment. fixes #172
1 parent
b0e8c908
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 @
4e0ea0a
...
...
@@ -677,7 +677,7 @@ videojs.Hls.getPlaylistDuration = function(playlist, startIndex, endIndex) {
for
(;
i
>=
startIndex
;
i
--
)
{
segment
=
playlist
.
segments
[
i
];
dur
+=
segment
.
duration
||
playlist
.
targetDuration
||
0
;
dur
+=
(
segment
.
duration
!==
undefined
?
segment
.
duration
:
playlist
.
targetDuration
||
0
)
;
}
return
dur
;
...
...
Please
register
or
sign in
to post a comment