WeiWen-3421 avatar image
0 Votes"
WeiWen-3421 asked WenyanZhang-MSFT commented

Playing audio using Plugin.AudioRecorder.AudioPlayer.Play() caused crash on xamarin.forms iOS

The player works fine on Android. On iOS, I can record, and play audio usingAudioPlayer.Play() since the file is stored locally on the device. But after the file is uploaded to Azure website and I used the link to play, the app crashed with the message:

Could not initialize an instance of the type 'AVFoundation.AVAudioPlayer': the native 'initWithContentsOfURL:error:' method returned nil.

Here is a link of the audio file:

I wonder if there are special characters in the link that iOS does not like?

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

0 Answers