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
ab0670dd
authored
2015-05-20 09:53:47 +0200
by
Tadej Novak
Committed by
David LaPalomento
2015-05-22 12:13:09 -0400
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Don't recalculate the live point if the translated index is the same as length
1 parent
9e0a6d2b
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 @
ab0670d
...
...
@@ -1035,7 +1035,7 @@ videojs.Hls.translateMediaIndex = function(mediaIndex, original, update) {
// bitrate switches should be happening here.
translatedMediaIndex
=
(
mediaIndex
+
(
original
.
mediaSequence
-
update
.
mediaSequence
));
if
(
translatedMediaIndex
>
=
update
.
segments
.
length
||
translatedMediaIndex
<
0
)
{
if
(
translatedMediaIndex
>
update
.
segments
.
length
||
translatedMediaIndex
<
0
)
{
// recalculate the live point if the streams are too far out of sync
return
videojs
.
Hls
.
getMediaIndexForLive_
(
update
)
+
1
;
}
...
...
Please
register
or
sign in
to post a comment