I am using this code to play video file using avplayer how do I stop it
[videoView setHidden:NO]; NSArray *paths = NSSearchPathForDirectoriesInDomains(N
If you dont want to set the av player to nil, a better approach might be :
videoPlayer.replaceCurrentItemWithPlayerItem(nil)