Hi, Safari supports playing back webm files (such as those recorded by Chrome/Firefox browsers with the MediaRecorder API), but our native app is unable to play these back with AVPlayer. Is there a supported way to do this? Right now we have to use a WebView for this!
Would also love to ExtAudioFileURLOpen or process these files with AVAudioEngine.
Have I missed something obvious here?
Hi, if your native app cannot play a webm file while Safari can, that could be because of unsupported audio format in the webm file. webm file format may contain Opus or Vorbis audio track. Opus codec is available for developers on all Apple platforms, but unfortunately, Vorbis codec is not. Vorbis decoder is pretty old audio codec, and ported to only a few Apple services, e.g. Safari.
So, there is no supported way for you to make it work with the APIs currently available. If you'd like us to consider adding the audio codec functionality, please file an enhancement request using Feedback Assistant. Once you file the request, please post the FB number here. If you're not familiar with how to file enhancement requests, take a look at Bug Reporting: How and Why?