loadEstimatedDataRate(completionHandler:)
Loads the approximate data rate of the track in bytes per second.
Declaration
optional func loadEstimatedDataRate(completionHandler: @escaping @Sendable (Float32, (any Error)?) -> Void)optional func estimatedDataRate() async throws -> Float32Parameters
- completionHandler:
The completion block to execute when the load operation finishes.
Discussion
If this method fails, it sets estimatedDataRate to 0.0 and the error contains information about the failure.
See Also
Getting track information
loadTrackInfo(completionHandler:)generateSampleCursor(atPresentationTimeStamp:completionHandler:)generateSampleCursorAtFirstSampleInDecodeOrder(completionHandler:)generateSampleCursorAtLastSampleInDecodeOrder(completionHandler:)loadUneditedDuration(completionHandler:)loadTotalSampleDataLength(completionHandler:)loadMetadata(completionHandler:)