One Logo Pool Ball
AVFoundation · IOS API REFERENCE

AVFragmentedAsset

class · iOS 12.0+ · SDK 27.1

class AVFragmentedAsset

Members (7)

method · iOS 15.0+

loadTrack

TypeScript
loadTrack(trackID: number, completionHandler: ((arg0: (AVFragmentedAssetTrack) | null, arg1: (NativeError) | null) => void)): void
Swift declaration
func loadTrack(withTrackID trackID: CMPersistentTrackID) async throws -> AVFragmentedAssetTrack?
method · iOS 15.0+

loadTracks

TypeScript
loadTracksWithMediaCharacteristicCompletionHandler(mediaCharacteristic: AVMediaCharacteristic, completionHandler: ((arg0: (Array<AVFragmentedAssetTrack>) | null, arg1: (NativeError) | null) => void)): void
Swift declaration
func loadTracks(withMediaCharacteristic mediaCharacteristic: AVMediaCharacteristic) async throws -> [AVFragmentedAssetTrack]
method · iOS 15.0+

loadTracks

TypeScript
loadTracksWithMediaTypeCompletionHandler(mediaType: AVMediaType, completionHandler: ((arg0: (Array<AVFragmentedAssetTrack>) | null, arg1: (NativeError) | null) => void)): void
Swift declaration
func loadTracks(withMediaType mediaType: AVMediaType) async throws -> [AVFragmentedAssetTrack]
method · iOS 4.0+ · Deprecated in iOS 16.0

track

TypeScript
track(trackID: number): (AVFragmentedAssetTrack) | null
Swift declaration
func track(withTrackID trackID: CMPersistentTrackID) -> AVFragmentedAssetTrack?
method · iOS 4.0+ · Deprecated in iOS 16.0

tracks

TypeScript
tracksWithMediaCharacteristic(mediaCharacteristic: AVMediaCharacteristic): Array<AVFragmentedAssetTrack>
Swift declaration
func tracks(withMediaCharacteristic mediaCharacteristic: AVMediaCharacteristic) -> [AVFragmentedAssetTrack]
method · iOS 4.0+ · Deprecated in iOS 16.0

tracks

TypeScript
tracksWithMediaType(mediaType: AVMediaType): Array<AVFragmentedAssetTrack>
Swift declaration
func tracks(withMediaType mediaType: AVMediaType) -> [AVFragmentedAssetTrack]
get · iOS 12.0+ · Deprecated in iOS 16.0

tracks

TypeScript
get tracks(): Array<AVFragmentedAssetTrack>
Swift declaration
var tracks: [AVFragmentedAssetTrack] { get }

Skipped declarations

1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.

AVFragmentedAsset.init()

inherited init: cannot prove legal (class declares 1 custom initializer)

All AVFoundation types →