Ogg audio in safari

廉价感情. 提交于 2019-12-06 06:07:21

问题


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.



来源:https://stackoverflow.com/questions/10583827/ogg-audio-in-safari

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!