Top "Avplayer" questions

An AVPlayer object is used to implement controllers and user interfaces for single- or multiple-item playback.

How to detect AVPlayer actually started to play in swift

Hello I have set my UISliderminimum value to 0.00. Then I set it's max value in this way. self.viewPlayer.layer.…

ios swift3 avplayer uislider
An AVPlayerItem cannot be associated with more than one instance of AVPlayer'

-(IBAction)play:(id)sender { thumbImageView.alpha=0.0; NSString *stringvideo=[NSString stringWithFormat:@"http://streaming-service",[[NSUserDefaults standardUserDefaults]valueForKey:@"VideoIdselected"]]; NSString *videoURLString = stringvideo; …

iphone ios video avplayer
iOS 7 AVPlayer AVPlayerItem duration incorrect in iOS 7

I have the following code in my app: NSURL *url = [NSURL fileURLWithPath: [self.DocDir stringByAppendingPathComponent: self.FileName] isDirectory: NO]; self.…

ios ios7 avfoundation avplayer avasset
AVPlayer - Add Seconds to CMTime

How can I add 5 seconds to my current playing Time? Actually this is my code: CMTime currentTime = music.currentTime; I …

iphone ios xcode avplayer cmtime
Swift: Resize an AVPlayerLayer to match the bounds of its parent container

I have a local video playing using AVPlayer and AVPlayerLayer (Swift, iOS 8.2), and i need to resize the AVPlayerLayer (introPlayerLayer) …

ios iphone swift avplayer avplayerlayer
Add custom header field in request of AVPlayer

Is it possible to send headers with an http request to an audio file when using AVPlayer? I need to …

ios avfoundation avplayer
ios avplayer trigger streaming is out of buffer

I want to reconnect to the server when the streaming buffer is empty. How can I trigger a method when …

ios audio-streaming avplayer
Subtitles for AVPlayer/MPMoviePlayerController

I am using m3u8 video format for streaming the video and now I need to display subtitles for the …

mpmovieplayercontroller avfoundation avplayer subtitle transport-stream
AVPlayer "freezes" the app at the start of buffering an audio stream

I am using a subclass of AVQueuePlayer and when I add new AVPlayerItem with a streaming URL the app freezes …

ios audio-streaming dropbox avplayer avqueueplayer
How to detect when an AVPlayerItem is finished playing?

I've been looking through the AVPlayerItem and AVPlayer docs and there doesn't seem to be any callbacks for when the …

ios avplayer