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
b8b1cf04
authored
2014-10-27 18:37:21 -0400
by
Gary Katsevman
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
move comment
1 parent
c56e61da
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
src/videojs-hls.js
src/videojs-hls.js
View file @
b8b1cf0
...
...
@@ -113,9 +113,6 @@ videojs.Hls.prototype.handleSourceOpen = function() {
oldMediaPlaylist
=
this
.
playlists
.
media
();
// periodically check if new data needs to be downloaded or
// buffered data should be appended to the source buffer
if
(
this
.
bandwidth
!==
this
.
playlists
.
bandwidth
||
(
this
.
bandwidth
&&
this
.
bandwidth
<
this
.
playlists
.
bandwidth
))
{
this
.
bandwidth
=
this
.
playlists
.
bandwidth
;
...
...
@@ -136,6 +133,9 @@ videojs.Hls.prototype.handleSourceOpen = function() {
}
player
.
one
(
'play'
,
videojs
.
bind
(
this
,
this
.
fillBuffer
));
// periodically check if new data needs to be downloaded or
// buffered data should be appended to the source buffer
player
.
on
(
'timeupdate'
,
videojs
.
bind
(
this
,
this
.
fillBuffer
));
player
.
on
(
'timeupdate'
,
videojs
.
bind
(
this
,
this
.
drainBuffer
));
player
.
on
(
'waiting'
,
videojs
.
bind
(
this
,
this
.
drainBuffer
));
...
...
Please
register
or
sign in
to post a comment