Top "Avplayer" questions

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

How to play a local video with Swift?

I have a short mp4 video file that I've added to my current Xcode6 Beta project. I want to play …

ios objective-c swift avplayer avplayerviewcontroller
Check play state of AVPlayer

Is there a way to know whether an AVPlayer playback has stalled or reached the end?

ios objective-c iphone avfoundation avplayer
Looping a video with AVFoundation AVPlayer?

Is there a relatively easy way of looping a video in AVFoundation? I've created my AVPlayer and AVPlayerLayer like so: …

ios objective-c swift avfoundation avplayer
capturing self strongly in this block is likely to lead to a retain cycle

How can I avoid this warning in xcode. Here is the code snippet: [player(AVPlayer object) addPeriodicTimeObserverForInterval:CMTimeMakeWithSeconds(0.1, 100) queue:nil …

objective-c cocoa-touch automatic-ref-counting avplayer retain
Knowing when AVPlayer object is ready to play

I'm trying to play an MP3 file that is passed to an UIView from a previous UIView (stored in a …

iphone avfoundation audio-streaming avplayer
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 …

ios iphone swift avplayer
AVPlayer layer inside a view does not resize when UIView frame changes

I have a UIView which contains an AVPlayer to show a video. When changing orientation, I need to change the …

objective-c uiview calayer avplayer
No AVPlayer Delegate? How to track when song finished playing? Objective C iPhone development

I've looked around but I can't find a delegate protocol for the AVPlayer class. What gives? I'm using its subclass, …

ios objective-c iphone avplayer avplayerviewcontroller
How do I get current playing time and total play time in AVPlayer?

Is it possible get playing time and total play time in AVPlayer? If yes, how can I do this?

ios avplayer
How do I get my AVPlayer to play while app is in background?

I've done my homework... been reading here, the docs, googling, stackoverflowing... but still no luck in making my sound stick …

iphone ios background avplayer