Contents

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 -> METrackInfo

Parameters

  • 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