Questions tagged [avqueueplayer]

AVQueuePlayer is a subclass of AVPlayer used to play a number of items in a sequence.

An AVPlayer object can be used to implement controllers and user interfaces for single- or multiple-item playback. The multiple-item case supports advanced behaviors.

AVPlayer works equally well with local and remote media files, providing appropriate information about readiness to play or about the need to await additional data before continuing.

The visual content of items played can be displayed by an instance of AVPlayer in a CoreAnimation layer of class AVPlayerLayer; to synchronize real-time playback with other CoreAnimation layers, AVSynchronizedLayer can be used. An instance of AVVideoCompositionCoreAnimationTool cannot be used with an AVPlayer object; for offline rendering AVAssetExportSession should be used.

The status of a player can be observed using key-value observing. AVPlayer serializes notifications of changes that occur dynamically during playback on a dispatch queue so that remote observers can be added and removed safely. By default, this queue is the main queue (see dispatch_get_main_queue). To ensure safe access to a player’s nonatomic properties while dynamic changes in playback state may be reported, one must serialize access with the receiver’s notification queue. In the common case, such serialization is naturally achieved by invoking AVPlayer’s various methods on the main thread or queue.

199 questions
0
votes
2 answers

How can I play movies on the toppest screen in IOS?

I am trying to play movies from a view controller. I am using the code below to do that: VideoPlayerViewController* moviePlayer = [self.storyboard instantiateViewControllerWithIdentifier:@"videoPlayerController"]; moviePlayer.view.frame =…
Burak
  • 5,706
  • 20
  • 70
  • 110
0
votes
2 answers

AVQueuePlayer playback freezes when removing items from queue

I successfully use AVQueuePlayer to queue and play AVPlayerItems. However, the problems begin when I alter the players queue with calls to removeItem: method. My assumption was that I can freely modify this queue as long as I don't touch the…
lawicko
  • 7,246
  • 3
  • 37
  • 49
0
votes
1 answer

AVQueuePlayer is pausing but play icon won't disappear

I'm building an application that uses an AVQueuePlayer to stream audio. I have my AVAudioSession set up with the category AVAudioSessionCategoryPlayback and I'm able to receive events from remoteControlReceivedWithEvent:. However, when I pause my…
AdamPro13
  • 7,232
  • 2
  • 30
  • 28
0
votes
3 answers

AVQueuePlayer volume not changed

I wanted to change volume settings with a UISlider. I used currentItem inside AVQueuePlayer. ps0 is an AVQueuePlayer. I have no error and same sound level when I use my UISlider: - (IBAction)volumeSliderMoved:(UISlider *)sender { …
user1056113
0
votes
1 answer

Handling AVQueuePlayer when buffer is empty

I would like to know how to handle playing of audio files from server using AVQueuePlayer when the buffer is empty. I receive buffer is empty via KVO and I am not sure what I suppose to do. This will happen when device is connected to low bandwidth.…
user2273744
  • 73
  • 1
  • 10
0
votes
1 answer

Using Switch Statement with AVQueuePlayer?

I have a queue set up of four tracks. When the track changes, I want to change a UIImage, in regards to that specific track (If track 1 is playing I want to display an image titled 1.png, if track 2 is playing I want to display 2.png, etc). I want…
KingPolygon
  • 4,753
  • 7
  • 43
  • 72
0
votes
1 answer

crash with doesNotRecognizeSelector with avplayeritem

I am getting a crash in what looks like a callback from an AVPlayerItem. I set the notification like this: if (queuePlayer==nil) { queuePlayer = [[AVQueuePlayer alloc] initWithItems:playerItems]; } else { for (AVPlayerItem* item in…
eric f.
  • 906
  • 2
  • 9
  • 17
0
votes
2 answers

How to play audio received in didOutputSampleBuffer:?

I am working on conference related application, i have first capture audio with CaptureSession, now I want to play the audio data dynamically without saving into file. I have tried with AVQueue it seems both CaptureSession and AVQueue won't work…
Newbee
  • 3,231
  • 7
  • 42
  • 74
0
votes
1 answer

AVQueuePlayer and multiple video playback and time ranges

Somewhat new to ios programming. Trying to use AVQueuePlayer and playing multiple videos in a list. I have searched and have not seen a relevant example to what I am trying to achieve. This is a question that is probably easily answered if…
vallete
  • 21
  • 4
0
votes
1 answer

Key-Value Observers for AVQueuePlayer

I have audio playing in AVQueuePlayer and associated album artwork on UIImage-via MPMediaPickerController. I populate array with URLs from MPMediaPickerController, then create array of AVPlayerItems(init with URL) which feeds AVQueuePlayer. When the…
Mickey
  • 313
  • 2
  • 13
0
votes
1 answer

Playing AVPlayerItem in AVQueuePlayer when auto-playing

I have an app that's 98% finished and very recently I stumbled upon a newly introduced bug. The app plays mp3's from a server coming from a playlist ( just a JSON list of track URL's, not an m3u file ). Everything is working as expected, except when…
Webdevotion
  • 1,223
  • 13
  • 24
0
votes
1 answer

iOS xcode4 AVQueuePlayer not playing sound

I'm trying to play a .m4a sound file using AVQueuePlayer, on iPhone4, but there is no sound. If I try AudioServicesPlaySystemSound with the same file, all works okay. Here's the code. (AVFoundation framework is installed.) #import…
Doug Null
  • 7,989
  • 15
  • 69
  • 148
0
votes
2 answers

AVQueuePlayer not playing sounds

I don't seem to able to playback sounds using AVQueuePlayer. The application compiles and runs fine but i'm not getting any audio when the `imageTouched' method is called. Can anyone help? -(void) imageTouched { NSString * path1 = [[NSBundle…
garethdn
  • 12,022
  • 11
  • 49
  • 83
0
votes
1 answer

Design choice with AVQueuePlayer and hpple

I'm designing an iPhone app that plays 3 files in sequence, using the AVQueuePlayer class. The 3 urls that I need to play in sequence must be extracted first from an .htm file, using the http:// protocol. For that purpose I'm using the TFHpple…
neowinston
  • 7,584
  • 10
  • 52
  • 83
-1
votes
1 answer

How to play a list of songs after pressing a button just once in Swift

I know how to make to play a single song play when you press a button on the screen but not an array of songs where one song automatically plays after a song finishes until all songs in the array are played. Someone mentioned on using AVQueuePlayer…
1 2 3
13
14