Closed rart closed 6 years ago
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.
[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.
Test page contains all relevant sources, though problem doesn't seem to relate to a specific source stream.
player.dispose()
Player is disposed correctly without errors.
Error [####][SourceBufferSink] Failed to remove source buffer from media source. shows up on the console.
[####][SourceBufferSink] Failed to remove source buffer from media source.
Please include any additional information necessary here. Including the following:
what version of videojs-contrib-hls does this occur with? "videojs-contrib-dash": "^2.10.0"
what version of videojs does this occur with? "video.js": "^7.3.0",
what browsers are affected? please include browser and version for each
what platforms are affected? please include operating system and version or device and version for each
are any other videojs plugins being used on the page? If so, please list them with version below.
are you using any other javascript libraries or frameworks on the page? if so please list them below.
package.json
Oops. Wrong repo for this ticket! Moved to https://github.com/videojs/videojs-contrib-dash/issues/296
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
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
Platforms
what platforms are affected? please include operating system and version or device and version for each
Other Plugins
are any other videojs plugins being used on the page? If so, please list them with version below.
Other JavaScript
are you using any other javascript libraries or frameworks on the page? if so please list them below.
package.json
for examples.