Platforms to show: All Mac Windows Linux Cross-Platform

Back to AVQueuePlayerMBS class.

AVQueuePlayerMBS.advanceToNextItem

Type Topic Plugin Version macOS Windows Linux iOS Targets
method AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Ends playback of the current item and initiates playback of the next item in the player's queue.

This method also removes the current item from the play queue.

AVQueuePlayerMBS.appendItem(item as AVPlayerItemMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Places given player item in the queue.

item: The item to be inserted.

AVQueuePlayerMBS.canAppendItem(item as AVPlayerItemMBS) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Returns a Boolean value that indicates whether a given player item can be appended into the player's queue.

item: The AVPlayerItem object to test.

Returns true if item can be appended to the queue, otherwise false.
Adding the same item to a player at more than one position in the queue is not supported.

AVQueuePlayerMBS.canInsertItem(item as AVPlayerItemMBS, afterItem as AVPlayerItemMBS = nil) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Returns a Boolean value that indicates whether a given player item can be inserted into the player's queue.

item: The AVPlayerItem object to test.
afterItem: The item that item is to follow in the queue. Pass nil to test whether item can be appended to the queue.

Returns true if item can be appended to the queue, otherwise false.
Adding the same item to a player at more than one position in the queue is not supported.

AVQueuePlayerMBS.Constructor(items() as AVPlayerItemMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Initializes an instance of AVQueuePlayer by enqueueing the player items from a given array.

items: An array of AVPlayerItem objects with which initially to populate the player's queue.
Creates an instance of AVQueuePlayer initialized to play the player items in items.

AVQueuePlayerMBS.insertItem(item as AVPlayerItemMBS, afterItem as AVPlayerItemMBS = nil)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Places given player item after a specified item in the queue.

item: The item to be inserted.
afterItem: The item that the newly inserted item should follow in the queue. Pass nil to append the item to the queue.

AVQueuePlayerMBS.items as AVPlayerItemMBS()

Type Topic Plugin Version macOS Windows Linux iOS Targets
method AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Returns an array of the currently enqueued items.

The array contains AVPlayerItem objects.

AVQueuePlayerMBS.removeAllItems

Type Topic Plugin Version macOS Windows Linux iOS Targets
method AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Removes all the items from the queue.

This has the side-effect of stopping playback by the player.

AVQueuePlayerMBS.removeItem(item as AVPlayerItemMBS)

Type Topic Plugin Version macOS Windows Linux iOS Targets
method AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Removes a given player item from the queue.

item: The item to be removed.

If item is currently playing, this has the same effect as advanceToNextItem.

The items on this page are in the following plugins: MBS AVFoundation Plugin.


The biggest plugin in space...