3 ms·
Is there a standard way of doing HTML5 audio? By which I mean, a standard that works cross-browser? ;)
by fixermark 10y ago
Is there a standard way of doing HTML5 audio?
By which I mean, a standard that works cross-browser? ;)
- cpeterso 10y agoGoogle Play Music uses MSE (Media Source Extensions) to stream MP3. Firefox doesn't support MP3 in MSE streams. Google Play Music could use AAC or Opus in MSE, like YouTube does, but they prefer MP3 because some Android devices have MP3 hardware decoders that (may!) use less battery power than software decoders. YouTube encodes all their content with in multiple formats: AAC and Opus, H.264 and VP9. I don't know why Google Play Music can't encode their music streams in both MP3 and Opus. They would save on bandwidth by using Opus. Here is the Firefox bug to add support for MP3 in MSE: https://bugzilla.mozilla.org/show_bug.cgi?id=1169485 https://bugzilla.mozilla.org/show_bug.cgi?id=1169485