Category "avplayer"

How to play video file from documentdirectory using avplayer

I am creating video player application in ios,if i store mp4 file in bundle resource or if i stream url it is working fine but if i store a file in document dir

AVPlayer layer not showing video content sometimes

AVPlayer layer not showing video content sometimes but plays audio. This happens some times not each time Here is my lines of code : override func viewDidLoa

AVPlayer and AVFoundationErrorDomain Code=-11819

i am developing an app where the music is played via AVPlayer using songs from a cloud service. everything works fine and most of the files are playing without

AVPlayer : change rate with NO pitch correction?

I am using the rate property of AVPlayer to change the playback speed of an audio sample. It seems to always apply pitch correction, but I want no pitch correc

Error Domain=NSOSStatusErrorDomain Code=560030580 "The operation couldn’t be completed. (OSStatus error 560030580.)"

I was using AVPlayer to play online mp3 stream ! When I pause the player [AVPlayer pause]; AVAudioSession *session = [AVAudioSession sharedInstance]; session

How to detect when AVPlayer video ends playing?

I'am using AVPlayer for playing local video file (mp4) in Swift. Does anyone know how to detect when video finish with playing? Thanks