How can I play .ogg audio files in safari without converting it to mp3? I use mediaelements.js library to flash fallback and it works fine in chrome and firefox and plays both mp3 and ogg files, but in safari it plays only mp3. Looks like flash fallback of this library can't play audio/ogg.
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
Codec support in modern desktop browsers
Browser Ogg Vorbis MP3 WAV
Firefox 3.6+ ✓ ✓
Safari 5+ ✓ ✓
Chrome 6 ✓ ✓
Opera 10.5+ ✓ ✓
Internet Explorer 9+ ✓ ✓
回答2:
AFAIK, Safari straight up doesn't do OGG. Unless you install a plugin, they say.