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
8c3dcb57
authored
2015-12-11 15:11:30 -0500
by
jrivera
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Don't attempt to remove from sourceBuffer if it is updating
1 parent
8b13aaa9
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 @
8c3dcb5
...
...
@@ -989,7 +989,7 @@ videojs.HlsHandler.prototype.loadSegment = function(segmentInfo) {
// Chrome has a hard limit of 150mb of buffer and a very conservative "garbage collector"
// We manually clear out the old buffer to ensure we don't trigger the QuotaExceeded error
// on the source buffer during subsequent appends
if
(
this
.
sourceBuffer
)
{
if
(
this
.
sourceBuffer
&&
!
this
.
sourceBuffer
.
updating
)
{
// If we have a seekable range use that as the limit for what can be removed safely
// otherwise remove anything older than 1 minute before the current play head
if
(
seekable
.
length
&&
seekable
.
start
(
0
)
>
0
)
{
...
...
Please
register
or
sign in
to post a comment