Skip to content

fix update buffer too fast#16

Open
mix5003 wants to merge 1 commit into
ebidel:masterfrom
mix5003:patch/firefox-media-source
Open

fix update buffer too fast#16
mix5003 wants to merge 1 commit into
ebidel:masterfrom
mix5003:patch/firefox-media-source

Conversation

@mix5003

@mix5003 mix5003 commented Dec 28, 2017

Copy link
Copy Markdown
Contributor

when browser updating we can not appendBuffer so we should wait before until updateend before add new chunk.

or may be use queue for speed up like this link?

@ebidel

ebidel commented Dec 30, 2017

Copy link
Copy Markdown
Owner

Haven't touched this api in a while :)

The demo still works for me: https://html5-demos.appspot.com/static/media-source.html. Is this the cause of the console error?

@mix5003

mix5003 commented Dec 30, 2017

Copy link
Copy Markdown
Contributor Author

in firefox it error in console is InvalidStateError: An attempt was made to use an object that is not, or is no longer, usable

@mix5003

mix5003 commented Jan 5, 2018

Copy link
Copy Markdown
Contributor Author

i just found this patch will fix Failed to execute 'endOfStream' on 'MediaSource': The 'updating' attribute is true on one or more of this MediaSource's SourceBuffers. in
Chrome Version 63.0.3239.108 (Official Build) (64-bit) on Linux Mint 18.3 too

i think it because endOfStream() was call before updateend (it still updating).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants