I am using AVPlayer to play video files downloaded from a URL. Is there a way to determine what video MIME types are supported by AVPlayer?
I tried using -
[AVURLAsset audiovisualMIMETypes]
which rerturns following supported MIME types for video -
"video/3gpp2",
"video/quicktime",
"video/mp4",
"video/avi",
"video/x-m4v",
"video/3gpp"
However, when I use AVI files, the AVPlayer fails to play those & return error - "Failed to play media file".
Is there a subtle & reliable way to determine what video formats does the AVPlayer support?
Contradictorily, as per above list avi seems to be a supported type, but the isPlayable check on AVAsset returns false for avi files. (Why?) Strange!
Note: I don't want to use isPlayable check on AVAsset object as it makes a network call & I have many files which makes it not preferable.