Platforms to show: All Mac Windows Linux Cross-Platform
Back to AVPlayerItemOutputMBS class.
AVPlayerItemOutputMBS.Constructor
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | AVFoundation | MBS AVFoundation Plugin | 13.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
AVPlayerItemOutputMBS.itemTimeForHostTime(hostTimeInSeconds as Double) as CMTimeMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | AVFoundation | MBS AVFoundation Plugin | 13.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
hostTimeInSeconds: A host time value, specified in seconds. For example, you might specify the time value returned by the CACurrentMediaTime function or the timestamp from a CADisplayLink object for this parameter.
Returns the equivalent time in the item's timebase.
The timestamp associated with a CADisplayLink object represents the time of the most recent screen refresh, which is usually a time in the past. If you want to find the time associated with the next screen refresh, you need to increment the timestamp by the value in the display link's duration property.
AVPlayerItemOutputMBS.itemTimeForMachAbsoluteTime(machAbsoluteTime as Int64) as CMTimeMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | AVFoundation | MBS AVFoundation Plugin | 13.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
machAbsoluteTime: The Mach host time to convert. You typically retrieve this value using the mach_absolute_time function.
Returns the equivalent time in the item's timebase.
Available in OS X v10.8 and later.
The items on this page are in the following plugins: MBS AVFoundation Plugin.