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
1af2580f
authored
2014-10-27 18:42:13 -0400
by
Gary Katsevman
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Actually don't downswitch
1 parent
b8b1cf04
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
src/videojs-hls.js
src/videojs-hls.js
View file @
1af2580
...
...
@@ -113,8 +113,8 @@ videojs.Hls.prototype.handleSourceOpen = function() {
oldMediaPlaylist
=
this
.
playlists
.
media
();
if
(
this
.
bandwidth
!==
this
.
playlists
.
bandwidth
||
(
this
.
bandwidth
&&
this
.
bandwidth
<
this
.
playlists
.
bandwidth
)
)
{
if
(
this
.
bandwidth
!==
this
.
playlists
.
bandwidth
)
{
if
(
this
.
bandwidth
!==
undefined
&&
this
.
bandwidth
<
this
.
playlists
.
bandwidth
)
{
this
.
bandwidth
=
this
.
playlists
.
bandwidth
;
selectedPlaylist
=
this
.
selectPlaylist
();
...
...
@@ -131,6 +131,9 @@ videojs.Hls.prototype.handleSourceOpen = function() {
}
else
{
this
.
fillBuffer
();
}
}
else
{
this
.
fillBuffer
();
}
player
.
one
(
'play'
,
videojs
.
bind
(
this
,
this
.
fillBuffer
));
...
...
Please
register
or
sign in
to post a comment