Closed shubhamrautgs closed 3 years ago
This issue may happen in iOS device, if playing azure blob storage content through Azure CDN url. As iOS Device is playing content through AV player as compared with Android for EXO player when we are using plugin.mediamanager.form package name. So try to check azure blob content type if it's "application/octet-stream" then try to change to "audio/mpeg" or whatever actual content type for the respective audio content. After that only it will play in iOS device. Also for new content while uploading into blob then make sure to add correct content type. Note:- Azure blob content may not change through Azure portal need to do it programmatically only.
It worked with above approach.
We're using XamarinMediaManager for streaming audio files in android and iOS Xamarin app. For that We're using "Plugin.MediaManager.Form" with 1.0.1 version. Currently we are getting content through Azure CDN which having Azure blob has an origin. In below method we are giving Azure CDN + SAS URI.
"await CrossMediaManager.Current.Play(MediaItem, Timespan)"
Above things worked perfectly fine in Android Device but in iOS not able to stream audio contents which coming from CDN+Sasuri. In info.plist we already added below things :
"NSAppTransportSecurity