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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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 |
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.