Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

Learn More

Media Source API (MSE) and FireFox problem

  • Akukho zimpendulo
  • 1 inale nkinga
more options

Following approach to show video stream via Media Source Extensions (MSE) works well in Chrome, Edge, Opera but not in FireFox:

Media Source API

mediaSource = new MediaSource() sourceBuffer = mediaSource.addSourceBuffer(myCodec) sourceBuffer.mode = "sequence" sourceBuffer.addEventListener('updateend', function () { UpdateEndHandler(self); }, false) sourceBuffer.addEventListener('updatestart', function () { UpdateStartHandler(self); }, false)

and in the events UpdateStartHandler and UpdateEndHandler is processed the value of - sourceBuffer.buffered.end(0)

The problem is that FireFox often returns the same values for UpdateStartHandler and for UpdateEndHandler event which si not correct because into sourceBuffer.appendBuffer were appended real video data. Chrome, Edge, Opera returns two different values.

Please help.

Kufanele ulogele ukungena ku-akhawunti yakho ukuze uphendule amaphosti. Uyacelwauqale umbuzo omusha, uma ungekabi nayo i-akhawunti namanje.