samdutton / simpl

Simplest possible examples of HTML, CSS and Javascript:
https://simpl.info
Apache License 2.0
5.19k stars 1.64k forks source link

WebM MSE video stalls after one second in Firefox 42+ #67

Closed cpeterso closed 7 years ago

cpeterso commented 9 years ago

I reported this bug on Mozilla's Bugzilla but this appears to be a bug in the simpl.info/mse player, not Firefox:

https://bugzilla.mozilla.org/show_bug.cgi?id=1202580

STEPS TO REPRODUCE:

  1. Set the following about:config prefs: media.mediasource.webm.enabled = true media.mediasource.format-reader.webm = true
  2. Load http://simpl.info/mse/
  3. Play the test video if it doesn't start automatically.

RESULT: In Firefox 42 (Aurora/Dev Edition), the video plays for two seconds then stops. In Firefox 43 (Nightly), the video plays for only one second.

The diagnosis was that this test does not wait for sourceBuffer updateend before calling sourceBuffer.appendBuffer again. This also fails with mp4. Works ok if readChunk_(++i); is called on updateend.

samdutton commented 7 years ago

Many thanks for this!

Apologies for the crazy delay in responding — I've been snowed under with work this past year :/.

Looks like this is working now in Firefox :).

I'll close the issue, but reopen if you need to.