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
831c403d
authored
2014-11-05 12:05:50 -0500
by
Gary Katsevman
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Move bandwidthupdate event up in loadedmetadata
1 parent
fa661f2f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
src/videojs-hls.js
src/videojs-hls.js
View file @
831c403
...
...
@@ -126,6 +126,8 @@ videojs.Hls.prototype.handleSourceOpen = function() {
oldMediaPlaylist
=
this
.
playlists
.
media
();
this
.
bandwidth
=
this
.
playlists
.
bandwidth
;
this
.
trigger
(
'bandwidthupdate'
);
selectedPlaylist
=
this
.
selectPlaylist
();
oldBitrate
=
oldMediaPlaylist
.
attributes
&&
oldMediaPlaylist
.
attributes
.
BANDWIDTH
||
0
;
...
...
@@ -155,8 +157,6 @@ videojs.Hls.prototype.handleSourceOpen = function() {
}
else
{
setupEvents
.
call
(
this
);
}
this
.
trigger
(
'bandwidthupdate'
);
}));
this
.
playlists
.
on
(
'error'
,
videojs
.
bind
(
this
,
function
()
{
...
...
Please
register
or
sign in
to post a comment