Media Source Extension on Firefox and IE

2.4k views Asked by At

I'm creating a Audio Player with HTML5, using the MediaSource Object.

My code is similar to MediaSource API Demo

But when executing the line

var ms = new MediaSource();

And exception is throwed on Firefox and Internet Explorer

ReferenceError: MediaSource is not defined

In Firefox Support says that this feature is only enabled to Youtube and Netflix.

There is a way to handle this restriction?

In Chrome, I have not problem!

2

There are 2 answers

2
Philip Bulley On BEST ANSWER

At time of writing, IE11 only has support when run on Windows 8.1 or above.

Firefox will only enable MSE when about:config param media.mediasource.enabled = true (this restriction will be removed eventually, once the FF implementation is globally stable). There is no way around this, so unless you are YouTube or Netflix, consider Firefox MSE as coming soon.

0
Lekoaf On

Firefox has been lagging behind quite badly when it comes to MSE support in their browser. Firefox Nightly build however now seems to be pretty close to working properly. It still has to go through nightly build and beta phase before it's released to the public, so expect a few months.