Mr Dipuna Mr Dipuna - 3 months ago 11
Swift Question

AVFoundation Framework and Mediaplyer Framework: Which is the best framework to play audio/video in iOS Application?

I am new to iOS. I need to implement both video and audio player in my app. So please advice me which player is most suitable as per developer point of view.

Choice:


  • AVplayer (AVFoundation )

  • MPMovieplayerController(MediaPlayer)


Answer

You should use AVPlayer since MPMovieplayerController is deprecated.

Comments