html5demos icon indicating copy to clipboard operation
html5demos copied to clipboard

fix update buffer too fast

Open mix5003 opened this issue 7 years ago • 3 comments

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?

mix5003 avatar Dec 28 '17 03:12 mix5003

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?

ebidel avatar Dec 30 '17 16:12 ebidel

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 avatar Dec 30 '17 17:12 mix5003

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).

mix5003 avatar Jan 05 '18 08:01 mix5003