Platforms to show: All Mac Windows Linux Cross-Platform

Back to AVMIDIPlayerMBS class.

AVMIDIPlayerMBS.CurrentPosition as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Midi MBS AVFoundation Plugin 16.2 ✅ Yes ❌ No ❌ No ✅ Yes All
The current playback position, in seconds.

You can set the currentPosition of the player while the player is playing, in which case playback will resume at the new time.

Note: No range checking on the currentPosition value is done when you set it to a new value. It is your responsibility to ensure the position is valid relative to the duration.
(Read and Write property)

Some examples using this property:

AVMIDIPlayerMBS.Duration as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Midi MBS AVFoundation Plugin 16.2 ✅ Yes ❌ No ❌ No ✅ Yes All
The length of the currently loaded file, in seconds.

(Read only property)

AVMIDIPlayerMBS.Handle as Integer

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Midi MBS AVFoundation Plugin 16.2 ✅ Yes ❌ No ❌ No ✅ Yes All
The internal object reference.

(Read and Write property)

AVMIDIPlayerMBS.Playing as Boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Midi MBS AVFoundation Plugin 16.2 ✅ Yes ❌ No ❌ No ✅ Yes All
Whether the sequence is playing.

The player may have reached the end of all the events in any of its tracks, but it will return true until it is stopped.
(Read only property)

AVMIDIPlayerMBS.Rate as Double

Type Topic Plugin Version macOS Windows Linux iOS Targets
property Midi MBS AVFoundation Plugin 16.2 ✅ Yes ❌ No ❌ No ✅ Yes All
The playback rate of the player.

The default value is 1.0, normal playback rate.
(Read and Write property)

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


The biggest plugin in space...