Mr Dipuna Mr Dipuna - 1 year ago 49
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.


  • AVplayer (AVFoundation )

  • MPMovieplayerController(MediaPlayer)

Answer Source

You should use AVPlayer since MPMovieplayerController is deprecated.