loadTrackInfo(completionHandler:)
Loads the track info object with the properties of the media asset track.
Declaration
func loadTrackInfo(completionHandler: @escaping @Sendable (METrackInfo?, (any Error)?) -> Void)func trackInfo() async throws -> METrackInfoParameters
- completionHandler:
The completion block to execute when the load operation finishes.
Discussion
If this method fails to create a track info object, it returns nil and the error contains information about the failure.
See Also
Getting track information
generateSampleCursor(atPresentationTimeStamp:completionHandler:)generateSampleCursorAtFirstSampleInDecodeOrder(completionHandler:)generateSampleCursorAtLastSampleInDecodeOrder(completionHandler:)loadUneditedDuration(completionHandler:)loadTotalSampleDataLength(completionHandler:)loadEstimatedDataRate(completionHandler:)loadMetadata(completionHandler:)