3 Replies
      Latest reply on Jul 12, 2019 9:30 AM by galad87
      Pritesh Lad Level 1 Level 1 (0 points)

        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 -







        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.