init
TypeScriptstatic init(URL: string): AVAssetSwift declarationconvenience init(url URL: URL)class · iOS 4.0+ · SDK 27.1
class AVAssetstatic init(URL: string): AVAssetSwift declarationconvenience init(url URL: URL)cancelLoading(): voidSwift declarationfunc cancelLoading()chapterMetadataGroupsBestMatchingPreferredLanguages(preferredLanguages: Array<string>): Array<AVTimedMetadataGroup>Swift declarationfunc chapterMetadataGroups(bestMatchingPreferredLanguages preferredLanguages: [String]) -> [AVTimedMetadataGroup]chapterMetadataGroupsWithTitleLocaleContainingItemsWithCommonKeys(locale: _Foundation_Locale, commonKeys?: (Array<AVMetadataKey>) | null): Array<AVTimedMetadataGroup>Swift declarationfunc chapterMetadataGroups(withTitleLocale locale: Locale, containingItemsWithCommonKeys commonKeys: [AVMetadataKey]?) -> [AVTimedMetadataGroup]findUnusedTrackID(completionHandler: ((arg0: number, arg1: (NativeError) | null) => void)): voidSwift declarationfunc findUnusedTrackID() async throws -> CMPersistentTrackIDloadChapterMetadataGroupsBestMatchingPreferredLanguagesCompletionHandler(preferredLanguages: Array<string>, completionHandler: ((arg0: (Array<AVTimedMetadataGroup>) | null, arg1: (NativeError) | null) => void)): voidSwift declarationfunc loadChapterMetadataGroups(bestMatchingPreferredLanguages preferredLanguages: [String]) async throws -> [AVTimedMetadataGroup]loadMediaSelectionGroup(mediaCharacteristic: AVMediaCharacteristic, completionHandler: ((arg0: (AVMediaSelectionGroup) | null, arg1: (NativeError) | null) => void)): voidSwift declarationfunc loadMediaSelectionGroup(for mediaCharacteristic: AVMediaCharacteristic) async throws -> AVMediaSelectionGroup?loadMetadata(format: AVMetadataFormat, completionHandler: ((arg0: (Array<AVMetadataItem>) | null, arg1: (NativeError) | null) => void)): voidSwift declarationfunc loadMetadata(for format: AVMetadataFormat) async throws -> [AVMetadataItem]loadTrack(trackID: number, completionHandler: ((arg0: (AVAssetTrack) | null, arg1: (NativeError) | null) => void)): voidSwift declarationfunc loadTrack(withTrackID trackID: CMPersistentTrackID) async throws -> AVAssetTrack?loadTracksWithMediaCharacteristicCompletionHandler(mediaCharacteristic: AVMediaCharacteristic, completionHandler: ((arg0: (Array<AVAssetTrack>) | null, arg1: (NativeError) | null) => void)): voidSwift declarationfunc loadTracks(withMediaCharacteristic mediaCharacteristic: AVMediaCharacteristic) async throws -> [AVAssetTrack]loadTracksWithMediaTypeCompletionHandler(mediaType: AVMediaType, completionHandler: ((arg0: (Array<AVAssetTrack>) | null, arg1: (NativeError) | null) => void)): voidSwift declarationfunc loadTracks(withMediaType mediaType: AVMediaType) async throws -> [AVAssetTrack]mediaSelectionGroup(mediaCharacteristic: AVMediaCharacteristic): (AVMediaSelectionGroup) | nullSwift declarationfunc mediaSelectionGroup(forMediaCharacteristic mediaCharacteristic: AVMediaCharacteristic) -> AVMediaSelectionGroup?metadataForFormat(format: AVMetadataFormat): Array<AVMetadataItem>Swift declarationfunc metadata(forFormat format: AVMetadataFormat) -> [AVMetadataItem]track(trackID: number): (AVAssetTrack) | nullSwift declarationfunc track(withTrackID trackID: CMPersistentTrackID) -> AVAssetTrack?tracksWithMediaCharacteristic(mediaCharacteristic: AVMediaCharacteristic): Array<AVAssetTrack>Swift declarationfunc tracks(withMediaCharacteristic mediaCharacteristic: AVMediaCharacteristic) -> [AVAssetTrack]tracksWithMediaType(mediaType: AVMediaType): Array<AVAssetTrack>Swift declarationfunc tracks(withMediaType mediaType: AVMediaType) -> [AVAssetTrack]unusedTrackID(): numberSwift declarationfunc unusedTrackID() -> CMPersistentTrackIDget allMediaSelections(): Array<AVMediaSelection>Swift declarationvar allMediaSelections: [AVMediaSelection] { get }get availableChapterLocales(): Array<_Foundation_Locale>Swift declarationvar availableChapterLocales: [Locale] { get }get availableMediaCharacteristicsWithMediaSelectionOptions(): Array<AVMediaCharacteristic>Swift declarationvar availableMediaCharacteristicsWithMediaSelectionOptions: [AVMediaCharacteristic] { get }get availableMetadataFormats(): Array<AVMetadataFormat>Swift declarationvar availableMetadataFormats: [AVMetadataFormat] { get }get canContainFragments(): booleanSwift declarationvar canContainFragments: Bool { get }get commonMetadata(): Array<AVMetadataItem>Swift declarationvar commonMetadata: [AVMetadataItem] { get }get isCompatibleWithAirPlayVideo(): booleanSwift declarationvar isCompatibleWithAirPlayVideo: Bool { get }get isCompatibleWithSavedPhotosAlbum(): booleanSwift declarationvar isCompatibleWithSavedPhotosAlbum: Bool { get }get isComposable(): booleanSwift declarationvar isComposable: Bool { get }get containsFragments(): booleanSwift declarationvar containsFragments: Bool { get }get creationDate(): (AVMetadataItem) | nullSwift declarationvar creationDate: AVMetadataItem? { get }get duration(): _CoreMedia_CMTimeSwift declarationvar duration: CMTime { get }get isExportable(): booleanSwift declarationvar isExportable: Bool { get }get hasProtectedContent(): booleanSwift declarationvar hasProtectedContent: Bool { get }get lyrics(): (string) | nullSwift declarationvar lyrics: String? { get }get metadata(): Array<AVMetadataItem>Swift declarationvar metadata: [AVMetadataItem] { get }get minimumTimeOffsetFromLive(): _CoreMedia_CMTimeSwift declarationvar minimumTimeOffsetFromLive: CMTime { get }get overallDurationHint(): _CoreMedia_CMTimeSwift declarationvar overallDurationHint: CMTime { get }get isPlayable(): booleanSwift declarationvar isPlayable: Bool { get }get preferredMediaSelection(): AVMediaSelectionSwift declarationvar preferredMediaSelection: AVMediaSelection { get }get preferredRate(): numberSwift declarationvar preferredRate: Float { get }get preferredTransform(): _CoreFoundation_CGAffineTransformSwift declarationvar preferredTransform: CGAffineTransform { get }get preferredVolume(): numberSwift declarationvar preferredVolume: Float { get }get providesPreciseDurationAndTiming(): booleanSwift declarationvar providesPreciseDurationAndTiming: Bool { get }get isReadable(): booleanSwift declarationvar isReadable: Bool { get }get referenceRestrictions(): AVAssetReferenceRestrictionsSwift declarationvar referenceRestrictions: AVAssetReferenceRestrictions { get }get trackGroups(): Array<AVAssetTrackGroup>Swift declarationvar trackGroups: [AVAssetTrackGroup] { get }get tracks(): Array<AVAssetTrack>Swift declarationvar tracks: [AVAssetTrack] { get }loadChapterMetadataGroupsWithTitleLocaleContainingItemsWithCommonKeys(locale: _Foundation_Locale, commonKeys?: Array<AVMetadataKey>): Promise<Array<AVTimedMetadataGroup>>Swift declarationfunc loadChapterMetadataGroups(withTitleLocale locale: Locale, containingItemsWithCommonKeys commonKeys: [AVMetadataKey] = []) async throws -> [AVTimedMetadataGroup]Tests, in order of preference, for a match between language identifiers in the specified array of preferred languages and the available chapter locales, and loads the array of chapters corresponding to the first match that's found. - Parameters: - locale: Locale of the metadata items carrying chapter titles to be returned (supports the IETF BCP 47 specification). - commonKeys: Array of common keys of AVMetadataItem to be included; if no common keys are required, send an empty list. AVMetadataCommonKeyArtwork is the only supported key for now. - Returns: An array of AVTimedMetadataGroup objects. Each object in the array always contains an AVMetadataItem representing the chapter title; the timeRange property of the AVTimedMetadataGroup object is equal to the time range of the chapter title item. An AVMetadataItem with the specified common key will be added to an existing AVTimedMetadataGroup object if the time range (timestamp and duration) of the metadata item and the metadata group overlaps. The locale of items not carrying chapter titles need not match the specified locale parameter. Further filtering of the metadata items in AVTimedMetadataGroups according to language can be accomplished using `AVMetadataItem.metadataItems(from:filteredAndSortedAccordingToPreferredLanguages:)`. Filtering of the metadata items according to locale can be accomplished using `AVMetadataItem.metadataItems(from:withLocale:)`.
1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.
AVAsset.init()
inherited init: cannot prove legal (class declares 2 custom initializers)