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
a77ffa48
authored
2015-09-29 17:00:15 -0400
by
jrivera
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
There are cases when a mediasource is re-opened and we need to account for that
1 parent
ad82ecc0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletions
src/videojs-hls.js
src/videojs-hls.js
View file @
a77ffa4
...
...
@@ -292,7 +292,12 @@ videojs.Hls.getMediaIndexForLive_ = function(selectedPlaylist) {
};
videojs
.
Hls
.
prototype
.
handleSourceOpen
=
function
()
{
this
.
setupSourceBuffer_
();
// Only attempt to create the source buffer if none already exist.
// handleSourceOpen is also called when we are "re-opening" a source buffer
// after `endOfStream` has been called (in response to a seek for instance)
if
(
!
this
.
sourceBuffer
)
{
this
.
setupSourceBuffer_
();
}
// if autoplay is enabled, begin playback. This is duplicative of
// code in video.js but is required because play() must be invoked
...
...
Please
register
or
sign in
to post a comment