David Liu
David Liu

Reputation: 17604

Firefox video tag getVideoPlaybackQuality() is not a function

According to MDN documentation, getVideoPlaybackQuality() on HTMLVideoElement is available after version 25.0.

However, I tried to call it on video element in Firefox 38.1.0 and got an getVideoPlaybackQuality is not a function error.

Is this api actually available for Firefox?

Upvotes: 1

Views: 564

Answers (2)

jlmcdonald
jlmcdonald

Reputation: 13667

Did you catch the footnote in Mozilla's documentation ... that the function is only available if you switch on a config flag?

Load about:config in Firefox and search for the media.mediasource.enabled flag, then set it to true and try your function call again.

EDIT: If I'm reading correctly, the release notes for Firefox 37 and Firefox 38 seem to indicate that the MediaSource API is currently implemented for YouTube only. However, it's enabled for Firefox Nightlies right now.

Upvotes: 1

David Liu
David Liu

Reputation: 17604

According to Firefox MSE bug report,

Firefox has a whitelist limiting MSE (to YouTube, Netflix, and Dailymotion) while we fix some compatibility bugs. The whitelist will likely be removed in Firefox 42, making MSE available to all websites.

Upvotes: 1

Related Questions