Ogg audio in safari

2019-04-11 02:28发布

问题:

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.