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
1
vote
0 answers

Buffering Problems in Avqueueplayer

I have a list of urls to be played from an avqueueplayer . I am loading the tracks and playable keys and adding the AVplayeritems into the Queue player one by one after each Item has finished playing. Iam handling the buffering states of the player…
shashank
  • 123
  • 14
1
vote
1 answer

Sometimes Play icon on status bar disappear while using AVQueueplayer

I want to show the play icon on status bar in iOS while app is playing audio. I use AVQueuePlayer to play audio items. All works well but problem I am facing is play icon doesn't show on status bar sometimes. The app has to support play/pause. When…
user2273744
  • 73
  • 1
  • 10
1
vote
1 answer

Play audio or sound while the app is in the background

Hi I have a Pedometer app that uses location services to stay in the background, now I need to play a beep sound every 1000 steps. I'm trying to play like this: AVAudioSession *audioSession = [AVAudioSession sharedInstance]; BOOL success =…
Ecarrion
  • 4,940
  • 1
  • 33
  • 44
1
vote
0 answers

AVQueuePlayer Video Image Freeze, Silenced Notification

I am building a AVQeueue Player from a set of encoded videos on an s3 bucket, playing videos in sequence using AVPlayerActionAtItemEndAdvance; videos are all encoded the same resolution and codec They are all tested good to play On some devices…
1
vote
2 answers

AVQueuePlayer - Crashing app after playing first music file

I am using AVQueuePlayer for playing multiple music file. I am using this code, NSString *str1 = @"www.mymusic.1.mp3"; NSURL *url1 = [NSURL URLWithString:str1]; AVPlayerItem *s1 = [AVPlayerItem playerItemWithURL:url1]; NSString *str2 =…
iUser
  • 1,075
  • 3
  • 20
  • 49
1
vote
1 answer

Move to Previous AVPlayerItem AVQueuePlayer

Trying to allow user to skip backwards in AVQueuePlayer while preserving the original AVQueuePlayer collection. For instance, user hits back button twice and resumes listening from previous position. Referring to this Skip to Previous AVPlayerItem…
Mickey
  • 313
  • 2
  • 13
1
vote
1 answer

How to implement uislider so that it can be used as a scrubber in AVQueueplayer

I have implemented scrubbing using UISlider the problem is when the song is being played the slider doesnt initiate automatically ,it starts moving only when i tap on it and when the next song starts playing it moves automatically . i want the…
orgami
  • 161
  • 3
  • 15
1
vote
0 answers

iOS 5 background playback error

I am using AVQueuePlayer for playing media from internet. I set proper AVAudioSessionCategoryPlayback, added UIBackgroundModes *audio* and I used UIBackgroundTask for making playback continue working in background (start background task after track…
mashe
  • 89
  • 1
  • 7
0
votes
1 answer

Playing two videos in sequence withou any gap or pause between them in iOS 5

In my app, I should play firstvideo at once, and then play second video, which will on repeat. So, at first I used MPMoviePlayerController, but there already was a black screen between two videos. So, I read somewhere, that in my case I should use…
0
votes
1 answer

Unable to do audio playback in background in iOS5 with AVQueuePlayer

I'm trying to build an app to play local music, but unfortunately, i'm unable to do audio playback in background in iOS5 with AVQueuePlayer. In my ViewDidLoad, i got this code : // Player setup mAudioPlayer = [[AVQueuePlayer alloc]…
colletjb
  • 279
  • 3
  • 16
0
votes
1 answer

AVQueuePlayer playing items simultaneously rather than in sequence

I am trying to put together a simple app to play a pre-roll video followed by some content video. Currently, I'm trying to use the AVQueuePlayer class to get this done. Unfortunately, it seems to want to play the videos properly in sequence. For…
jbrunken
  • 294
  • 1
  • 9
0
votes
1 answer

Using AVQueuePlayer to get current track information

I am loading my iPod library into AVQueuePlayer and playing it using this: [[AVQueuePlayer alloc]]initWithItems:[MPMediaCollectionInstance items] ]; //just one line. But how do I read which MPMediaItem is currently playing? I want to know…
Z S
  • 7,039
  • 12
  • 53
  • 105
0
votes
0 answers

how to play muted live stream in AVQueuePlayer ios swift

If live stream has no audio then AVQueuePlayer not streaming/playing it. Is there a way to play the live stream if there is no sound. I am using AVPlayerLayer and AVQueuePlayer.. AVQueuePlayer should play muted live stream.
Abhinay
  • 1
  • 1
0
votes
0 answers

AVQueuePlayer not playing when I load an http url pointing to data in memory MacOS/IOS

I am developing an app which extracts the contents of a remote URL to memory then attempts to serve it from my app's http server, using Kitura. If I write the data to a file before loading to AVQueuePlayer it plays just fine; but if I add the data…
0
votes
0 answers

How to get a new AVPlayer to play instantly after a different one ends?

I'm using AVPlayer to handle playing a list of remote and/or local audio files. Originally I was using AVQueuePlayer, setting all the items once and letting them play. This results in really seamless playback from one file to the next. However, I…
Miles
  • 487
  • 3
  • 12