Platforms to show: All Mac Windows Linux Cross-Platform

Back to AVFoundationMBS class.

AVFoundationMBS.PeriodicTimeObserver(Player as AVPlayerMBS, time as CMTimeMBS, tag as Variant)

Type Topic Plugin Version macOS Windows Linux iOS Targets
event AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Called by addPeriodicTimeObserverForInterval.

time: The time at which the block is invoked.

Tag is the value you passed when calling the original method.

Some examples using this event:

AVFoundationMBS.PlayerItemDidPlayToEndTime(PlayerItem as AVPlayerItemMBS, notification as Variant)

Type Topic Plugin Version macOS Windows Linux iOS Targets
event AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Posted when the item has played to its end time.

notification is a NSNotificationMBS object.
The notification's object is the item that finished playing.

AVFoundationMBS.PlayerItemFailedToPlayToEndTime(PlayerItem as AVPlayerItemMBS, error as NSErrorMBS, notification as Variant)

Type Topic Plugin Version macOS Windows Linux iOS Targets
event AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Posted when the item failed to play to its end time.

notification is a NSNotificationMBS object.
The notification's object is the item that finished playing.
The user info dictionary contains an error object that describes the problem—seeAVPlayerItemFailedToPlayToEndTimeErrorKey.

AVFoundationMBS.PlayerItemNewAccessLogEntry(PlayerItem as AVPlayerItemMBS, notification as Variant)

Type Topic Plugin Version macOS Windows Linux iOS Targets
event AVFoundation MBS AVFoundation Plugin 14.0 ✅ Yes ❌ No ❌ No ✅ Yes All
A new access log entry is available to a player item.

notification is a NSNotificationMBS object.
Posted when a new access log entry has been added.
The notification's object is the player item. The new log entry is accessible via accessLog.

AVFoundationMBS.PlayerItemNewErrorLogEntry(PlayerItem as AVPlayerItemMBS, notification as Variant)

Type Topic Plugin Version macOS Windows Linux iOS Targets
event AVFoundation MBS AVFoundation Plugin 14.0 ✅ Yes ❌ No ❌ No ✅ Yes All
A new error log entry is available to a player item.

notification is a NSNotificationMBS object.
Posted when a new error log entry has been added.
The notification's object is the player item. The new log entry is accessible via errorLog, respectively.

AVFoundationMBS.PlayerItemPlaybackStalled(PlayerItem as AVPlayerItemMBS, notification as Variant)

Type Topic Plugin Version macOS Windows Linux iOS Targets
event AVFoundation MBS AVFoundation Plugin 14.0 ✅ Yes ❌ No ❌ No ✅ Yes All
The player item playback is stalled.

notification is a NSNotificationMBS object.

Posted when some media did not arrive in time to continue playback.
The notification's object is the AVPlayerItem instance whose playback was unable to continue because the necessary media isn't available yet, usually because it didn't arrive in a timely fashion from its source over a network. Playback will continue once a sufficient amount of media has subsequently been delivered.

AVFoundationMBS.playerItemSeekToDateFinished(player as AVPlayerItemMBS, date as Variant, finished as boolean, tag as Variant)

Type Topic Plugin Version macOS Windows Linux iOS Targets
event AVFoundation MBS AVFoundation Plugin 14.0 ✅ Yes ❌ No ❌ No ✅ Yes All
The seek operation to date finished.

Tag is the value you passed when calling the original method.

AVFoundationMBS.playerItemSeekToTimeFinished(player as AVPlayerItemMBS, time as CMTimeMBS, toleranceBefore as CMTimeMBS, toleranceAfter as CMTimeMBS, finished as boolean, tag as Variant)

Type Topic Plugin Version macOS Windows Linux iOS Targets
event AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
A seek operation has finished.

finished: Indicates whether the seek operation completed.

Tag is the value you passed when calling the original method.

AVFoundationMBS.PlayerItemTimeJumped(PlayerItem as AVPlayerItemMBS, notification as Variant)

Type Topic Plugin Version macOS Windows Linux iOS Targets
event AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Posted when the item's current time has changed discontinuously.

notification is a NSNotificationMBS object.
The notification's object is the item.

AVFoundationMBS.playerSeekToDateFinished(player as AVPlayerMBS, date as Variant, finished as boolean, tag as Variant)

Type Topic Plugin Version macOS Windows Linux iOS Targets
event AVFoundation MBS AVFoundation Plugin 14.0 ✅ Yes ❌ No ❌ No ✅ Yes All
Event called by AVPlayerMBS.seekToDate method when seeking is done.

Tag is the value you passed when calling the original method.

AVFoundationMBS.playerSeekToTimeFinished(player as AVPlayerMBS, time as CMTimeMBS, toleranceBefore as CMTimeMBS, toleranceAfter as CMTimeMBS, finished as boolean, tag as Variant)

Type Topic Plugin Version macOS Windows Linux iOS Targets
event AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Called by AVPlayerMBS.seekToTime when seeking is done.

finished: Indicates whether the seek operation completed.

Tag is the value you passed when calling the original method.

AVFoundationMBS.prerollAtRateFinished(player as AVAudioPlayerMBS, rate as Double, finished as boolean, tag as Variant)

Type Topic Plugin Version macOS Windows Linux iOS Targets
event AVFoundation MBS AVFoundation Plugin 13.2 ✅ Yes ❌ No ❌ No ✅ Yes All
The event called when preroll is done.

Finished: True if the data was loaded or false if there was a problem.
The value might be false if the preroll was interrupted by a time change or incompatible rate change.

Tag is the value you passed when calling the original method.

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


The biggest plugin in space...