Friday, July 1, 2022

Why Safari on Mac or iOS does not play HTML5 ogg audios?

 With html5 audio tags built-in, it requires very little coding to add audio playback functionality to a web page, a short example can be found here.

However, if you are using the open source ogg audio file, you may encounter a problem. It will work fine with firefox or chrome, but the sound simply doe NOT work on Safari or iPhone. 

What happened?

The reason is very straightforward. As of June 2022, Safari does NOT support OGG file format. The simplest solution is converting all OGG audio files to MP3. The powerful, open source command-line tool FFmpeg can be used to do the conversion. 




Wednesday, June 22, 2022

Hello, World!

 Following the convention in coders, the first post is dedicated to the "hello, world" catchphrase. 

Why Safari on Mac or iOS does not play HTML5 ogg audios?

 With html5 audio tags built-in, it requires very little coding to add audio playback functionality to a web page, a short example can be fo...