Platforms to show: All Mac Windows Linux Cross-Platform
Back to AVPlayerItemVideoOutputMBS class.
AVPlayerItemVideoOutputMBS.Constructor(pixelBufferAttributes as dictionary)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | AVFoundation | MBS AVFoundation Plugin | 13.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
pixelBufferAttributes; The pixel buffer attributes required for video output. For a list of pixel buffer attributes you can include in this dictionary, see the CVPixelBuffer.h header file in the Core Video framework.
AVPlayerItemVideoOutputMBS.copyCIImageForItemTime(time as CMTimeMBS) as Variant
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | AVFoundation | MBS AVFoundation Plugin | 13.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
itemTime: The time at which you want to retrieve the image from the item.
outItemTimeForDisplay: Optional, the time by which you intend to use the returned pixel buffer.
Returns a pixel buffer containing the image data to display or nil if nothing should be displayed at the specified time. The caller is responsible for calling CVBufferRelease on the returned data when it is no longer needed.
Typically, you call this method in response to a CVDisplayLink callback or a CADisplayLink delegate method call when the hasNewPixelBufferForItemTime method also returns true.
After calling this method, the video output object marks the pixel buffer data as having been acquired. This causes the hasNewPixelBufferForItemTime method to return false unless newer data becomes available.
Returns CIImageMBS object.
Available in OS X v10.8 and later.
See also:
AVPlayerItemVideoOutputMBS.copyCIImageForItemTime(time as CMTimeMBS, byref outItemTimeForDisplay as CMTimeMBS) as Variant
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | AVFoundation | MBS AVFoundation Plugin | 13.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
itemTime: The time at which you want to retrieve the image from the item.
outItemTimeForDisplay: Optional, the time by which you intend to use the returned pixel buffer.
Returns a pixel buffer containing the image data to display or nil if nothing should be displayed at the specified time. The caller is responsible for calling CVBufferRelease on the returned data when it is no longer needed.
Typically, you call this method in response to a CVDisplayLink callback or a CADisplayLink delegate method call when the hasNewPixelBufferForItemTime method also returns true.
After calling this method, the video output object marks the pixel buffer data as having been acquired. This causes the hasNewPixelBufferForItemTime method to return false unless newer data becomes available.
Returns CIImageMBS object.
Available in OS X v10.8 and later.
See also:
AVPlayerItemVideoOutputMBS.copyPixelBufferForItemTime(time as CMTimeMBS) as CVPixelBufferMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | AVFoundation | MBS AVFoundation Plugin | 13.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
itemTime: The time at which you want to retrieve the image from the item.
outItemTimeForDisplay: Optional, the time by which you intend to use the returned pixel buffer.
Returns a pixel buffer containing the image data to display or nil if nothing should be displayed at the specified time. The caller is responsible for calling CVBufferRelease on the returned data when it is no longer needed.
Typically, you call this method in response to a CVDisplayLink callback or a CADisplayLink delegate method call when the hasNewPixelBufferForItemTime method also returns true.
After calling this method, the video output object marks the pixel buffer data as having been acquired. This causes the hasNewPixelBufferForItemTime method to return false unless newer data becomes available.
Returns CVPixelBufferMBS object.
Available in OS X v10.8 and later.
See also:
AVPlayerItemVideoOutputMBS.copyPixelBufferForItemTime(time as CMTimeMBS, byref outItemTimeForDisplay as CMTimeMBS) as CVPixelBufferMBS
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | AVFoundation | MBS AVFoundation Plugin | 13.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
itemTime: The time at which you want to retrieve the image from the item.
outItemTimeForDisplay: Optional, the time by which you intend to use the returned pixel buffer.
Returns a pixel buffer containing the image data to display or nil if nothing should be displayed at the specified time. The caller is responsible for calling CVBufferRelease on the returned data when it is no longer needed.
Typically, you call this method in response to a CVDisplayLink callback or a CADisplayLink delegate method call when the hasNewPixelBufferForItemTime method also returns true.
After calling this method, the video output object marks the pixel buffer data as having been acquired. This causes the hasNewPixelBufferForItemTime method to return false unless newer data becomes available.
Available in OS X v10.8 and later.
See also:
AVPlayerItemVideoOutputMBS.hasNewPixelBufferForItemTime(time as CMTimeMBS) as boolean
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | AVFoundation | MBS AVFoundation Plugin | 13.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
itemTime: The item time to query. The time value is relative to the AVPlayerItem object with which the receiver is associated.
Returns true if there is available video output that has not been previously acquired or false if there is not.
This method returns true if the video data at the specified time has not yet been acquired or is different from the video that was acquired previously. If you require multiple objects to acquire video output from the same AVPlayerItem object, you should create separate AVPlayerItemVideoOutput objects for each.
Available in OS X v10.8 and later.
AVPlayerItemVideoOutputMBS.requestNotificationOfMediaDataChangeWithAdvanceInterval(time as Double)
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | AVFoundation | MBS AVFoundation Plugin | 13.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
interval: The amount of time to wait before notifying the delegate of the media change.
Call this method before you suspend your use of a CVDisplayLinkRef type or a CADisplayLink object. After the interval expires, the video output object notifies its delegate that it should resume the display link. If the interval value you specify is large, the delegate is notified as soon as possible rather than waiting.
Do not call this method repeatedly to force the delegate to be notified for each sample.
AVPlayerItemVideoOutputMBS.setDelegate
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
method | AVFoundation | MBS AVFoundation Plugin | 13.2 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
The constructor (if used) sets this for you automatically.
The items on this page are in the following plugins: MBS AVFoundation Plugin.