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
votes
1 answer

How to play sequence MP3 files?

I'm trying to play sequence mp3 files by using array, for and AVQueueplayer. I see this error Expected declaration. for number in myIndex..
mjk
  • 21
  • 1
  • 6
-1
votes
1 answer

Update items of AVQueuePlayer

I'm writing a wrapper to create an Audio player using AVQueuePlayer. I want to be able to update the items (update the playlist, add, remove from playlist...) the only way that I have found is this: var audioPlayer = AVQueuePlayer() public var…
iOSGeek
  • 5,115
  • 9
  • 46
  • 74
-1
votes
1 answer

AVQueuePlayer set Tempo of audio

I am using AVQueuePlayer for playing multiple audio which are saved locally. For reference please check below code, for (int j = 0; j < arrPlayData.count; j++) { path =[[NSBundle mainBundle] pathForResource:[[arrPlayData…
iGatiTech
  • 2,306
  • 1
  • 21
  • 45
-1
votes
1 answer

iPhone short file to play

I am wondering if it is possible to play several little audio files on iPhone. I created a sound file of 25µs but I can't play it on Simulator or on the Device. So I created several files 25µs, 50µs and 100µs but even if I use NSArray or…
attin83
  • 115
  • 3
  • 8
1 2 3
13
14