question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Failed to remove source buffer from media source error when disposing player

See original GitHub issue

Description

Disposing of players using videojs-contrib-hls (hence dashjs too) incurs in an error that looks like: [2422][SourceBufferSink] Failed to remove source buffer from media source.

Here’s a test page reproducing the issue — including it’s source code. https://stackblitz.com/edit/videojs-buffer-issue?file=index.js

This particular example is using videojs on a react app but the error is reproduceable regardless of react and it’s lifecycles.

Sources

Test page contains all relevant sources, though problem doesn’t seem to relate to a specific source stream.

Steps to reproduce

  1. Invoke player.dispose() of one or more players which have a dash source. Observe the console.

Results

Expected

Player is disposed correctly without errors.

Error output

Error [####][SourceBufferSink] Failed to remove source buffer from media source. shows up on the console.

Additional Information

Please include any additional information necessary here. Including the following:

videojs-contrib-hls version

what version of videojs-contrib-hls does this occur with? “videojs-contrib-dash”: “^2.10.0”

videojs version

what version of videojs does this occur with? “video.js”: “^7.3.0”,

Browsers

what browsers are affected? please include browser and version for each

  • Likely all. Tested on Safari and Chrome.

Platforms

what platforms are affected? please include operating system and version or device and version for each

  • Tested on Mac OSX. Likely any platform.

Other Plugins

are any other videojs plugins being used on the page? If so, please list them with version below.

  • No.

Other JavaScript

are you using any other javascript libraries or frameworks on the page? if so please list them below.

  • None relevant. See test page’s package.json for examples.

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:10
  • Comments:6

github_iconTop GitHub Comments

5reactions
rhodhcommented, Jan 16, 2019

I’ve also seen this issue on Windows 10 Chrome.

4reactions
hmtri1011commented, Aug 12, 2019

Hi, any update for this issue? It is happening to me

Read more comments on GitHub >

github_iconTop Results From Across the Web

This SourceBuffer has been removed from the parent media ...
I have a problem with this code and get error Failed to execute appendBuffer on SourceBuffer: This SourceBuffer has been removed from the ......
Read more >
"Media Source Error" pops up while previewing video or ...
Try to use another source file format in your project. Remove all third party codecs if any are installed. Try to output the...
Read more >
just_audio | Flutter Package - Pub.dev
A feature-rich audio player for Flutter. Loop, clip and concatenate any sound from any source (asset/file/URL/stream) in a variety of audio formats with ......
Read more >
Source: player.js - Video.js Documentation
media -error.js';; 25 : import safeParseTuple from 'safe-json-parse/tuple'; ... of the original for later so we can know if the source originally failed...
Read more >
JSDoc: Global - UNPKG
http://w3c.github.io/media-source/#widl-SourceBuffer-abort-void ... walk backward until we find a duration we can use or return a failure ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found