Search code examples
iosreact-nativeavfoundationreact-native-videoamazon-cloudfront

domain = AVFoundationErrorDomain , code = -11828


I am using the streaming url from CloudFront.

Sample URL: https://d14nt81hc5bide.cloudfront.net/qyYj1PcUkYg2ALDfzAdhZAmb

On Android , it is working fine but in iOS it says: domain = AVFoundationErrorDomain , code = -11828

From apple doc the error code 11828 is AVErrorFileFormatNotRecognized. The media could not be opened because it is not in a recognized format.

Can someone suggest how to fix this error?


Solution

  • I had no other option but to make my CloudFront URL to have .mp3 attached. And then it works for ios.