AVCaptureTimecode.CreateMetadataSampleBufferForDuration(CMTime) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates a sample buffer containing timecode metadata for a specified duration.
public CoreMedia.CMSampleBuffer? CreateMetadataSampleBufferForDuration(CoreMedia.CMTime duration);
member this.CreateMetadataSampleBufferForDuration : CoreMedia.CMTime -> CoreMedia.CMSampleBuffer
Parameters
- duration
- CMTime
The duration that the metadata sample buffer should represent.
Returns
A sample buffer with encoded timecode metadata for the given duration, or null if creation fails.
Remarks
Use this method for scenarios where timecode metadata needs to span a custom interval rather than a single frame.