eligibleForHDRPlaybackDidChangeNotification
TypeScriptstatic get eligibleForHDRPlaybackDidChangeNotification(): Promise<_Foundation_NSNotification_Name>Swift declarationclass let eligibleForHDRPlaybackDidChangeNotification: NSNotification.Nameclass · iOS 4.0+ · SDK 27.1
@MainActor class AVPlayerstatic get eligibleForHDRPlaybackDidChangeNotification(): Promise<_Foundation_NSNotification_Name>Swift declarationclass let eligibleForHDRPlaybackDidChangeNotification: NSNotification.Namestatic get rateDidChangeNotification(): Promise<_Foundation_NSNotification_Name>Swift declarationclass let rateDidChangeNotification: NSNotification.Namestatic get rateDidChangeOriginatingParticipantKey(): Promise<string>Swift declarationclass let rateDidChangeOriginatingParticipantKey: Stringstatic get rateDidChangeReasonKey(): Promise<string>Swift declarationclass let rateDidChangeReasonKey: Stringstatic get availableHDRModes(): Promise<AVPlayer_HDRMode>Swift declarationnonisolated class var availableHDRModes: AVPlayer.HDRMode { get }static get eligibleForHDRPlayback(): Promise<boolean>Swift declarationnonisolated class var eligibleForHDRPlayback: Bool { get }static get isObservationEnabled(): Promise<boolean>Swift declarationnonisolated class var isObservationEnabled: Bool { get set }static setIsObservationEnabled(value: boolean): Promise<void>Swift declarationnonisolated class var isObservationEnabled: Bool { get set }addBoundaryTimeObserver(times: Array<_Foundation_NSValue>, queue: (_Dispatch_DispatchQueue) | null, block: (() => void)): Promise<unknown>Swift declarationnonisolated func addBoundaryTimeObserver(forTimes times: [NSValue], queue: dispatch_queue_t?, using block: @escaping @Sendable () -> Void) -> AnyaddPeriodicTimeObserver(interval: _CoreMedia_CMTime, queue: (_Dispatch_DispatchQueue) | null, block: ((arg0: _CoreMedia_CMTime) => void)): Promise<unknown>Swift declarationnonisolated func addPeriodicTimeObserver(forInterval interval: CMTime, queue: dispatch_queue_t?, using block: @escaping @Sendable (CMTime) -> Void) -> AnycancelPendingPrerolls(): Promise<void>Swift declarationnonisolated func cancelPendingPrerolls()currentTime(): Promise<_CoreMedia_CMTime>Swift declarationnonisolated func currentTime() -> CMTimestatic init(): Promise<AVPlayer>Swift declarationnonisolated init()static initPlayerItem(item?: (AVPlayerItem) | null): Promise<AVPlayer>Swift declarationnonisolated init(playerItem item: AVPlayerItem?)static initUrl(URL: string): Promise<AVPlayer>Swift declarationnonisolated init(url URL: URL)mediaSelectionCriteria(mediaCharacteristic: AVMediaCharacteristic): Promise<(AVPlayerMediaSelectionCriteria) | null>Swift declarationnonisolated func mediaSelectionCriteria(forMediaCharacteristic mediaCharacteristic: AVMediaCharacteristic) -> AVPlayerMediaSelectionCriteria?pause(): Promise<void>Swift declarationnonisolated func pause()play(): Promise<void>Swift declarationnonisolated func play()playImmediately(rate: number): Promise<void>Swift declarationnonisolated func playImmediately(atRate rate: Float)preroll(rate: number, completionHandler?: (((arg0: boolean) => void)) | null): Promise<void>Swift declarationnonisolated func preroll(atRate rate: Float) async -> BoolremoveTimeObserver(observer: unknown): Promise<void>Swift declarationnonisolated func removeTimeObserver(_ observer: Any)replaceCurrentItem(item?: (AVPlayerItem) | null): Promise<void>Swift declarationnonisolated func replaceCurrentItem(with item: AVPlayerItem?)seekTo(date: globalThis.Date): Promise<void>Swift declarationnonisolated func seek(to date: Date)seekToCompletionHandler(date: globalThis.Date, completionHandler: ((arg0: boolean) => void)): Promise<void>Swift declarationnonisolated func seek(to date: Date) async -> BoolseekTo47742(time: _CoreMedia_CMTime): Promise<void>Swift declarationnonisolated func seek(to time: CMTime)seekToCompletionHandler28014(time: _CoreMedia_CMTime, completionHandler: ((arg0: boolean) => void)): Promise<void>Swift declarationnonisolated func seek(to time: CMTime) async -> BoolseekToToleranceBeforeToleranceAfter(time: _CoreMedia_CMTime, toleranceBefore: _CoreMedia_CMTime, toleranceAfter: _CoreMedia_CMTime): Promise<void>Swift declarationnonisolated func seek(to time: CMTime, toleranceBefore: CMTime, toleranceAfter: CMTime)seekToToleranceBeforeToleranceAfterCompletionHandler(time: _CoreMedia_CMTime, toleranceBefore: _CoreMedia_CMTime, toleranceAfter: _CoreMedia_CMTime, completionHandler: ((arg0: boolean) => void)): Promise<void>Swift declarationnonisolated func seek(to time: CMTime, toleranceBefore: CMTime, toleranceAfter: CMTime) async -> BoolsetMediaSelectionCriteria(criteria: (AVPlayerMediaSelectionCriteria) | null, mediaCharacteristic: AVMediaCharacteristic): Promise<void>Swift declarationnonisolated func setMediaSelectionCriteria(_ criteria: AVPlayerMediaSelectionCriteria?, forMediaCharacteristic mediaCharacteristic: AVMediaCharacteristic)setRate(rate: number, itemTime: _CoreMedia_CMTime, hostClockTime: _CoreMedia_CMTime): Promise<void>Swift declarationnonisolated func setRate(_ rate: Float, time itemTime: CMTime, atHostTime hostClockTime: CMTime)get actionAtItemEnd(): Promise<AVPlayer_ActionAtItemEnd>Swift declarationnonisolated var actionAtItemEnd: AVPlayer.ActionAtItemEnd { get set }setActionAtItemEnd(value: AVPlayer_ActionAtItemEnd): Promise<void>Swift declarationnonisolated var actionAtItemEnd: AVPlayer.ActionAtItemEnd { get set }get allowsCaptureOfClearKeyVideo(): Promise<boolean>Swift declarationnonisolated var allowsCaptureOfClearKeyVideo: Bool { get set }setAllowsCaptureOfClearKeyVideo(value: boolean): Promise<void>Swift declarationnonisolated var allowsCaptureOfClearKeyVideo: Bool { get set }get allowsExternalPlayback(): Promise<boolean>Swift declarationnonisolated var allowsExternalPlayback: Bool { get set }setAllowsExternalPlayback(value: boolean): Promise<void>Swift declarationnonisolated var allowsExternalPlayback: Bool { get set }get appliesMediaSelectionCriteriaAutomatically(): Promise<boolean>Swift declarationnonisolated var appliesMediaSelectionCriteriaAutomatically: Bool { get set }setAppliesMediaSelectionCriteriaAutomatically(value: boolean): Promise<void>Swift declarationnonisolated var appliesMediaSelectionCriteriaAutomatically: Bool { get set }get audioOutputSuppressedDueToNonMixableAudioRoute(): Promise<boolean>Swift declarationvar audioOutputSuppressedDueToNonMixableAudioRoute: Bool { get }get audiovisualBackgroundPlaybackPolicy(): Promise<AVPlayerAudiovisualBackgroundPlaybackPolicy>Swift declarationnonisolated var audiovisualBackgroundPlaybackPolicy: AVPlayerAudiovisualBackgroundPlaybackPolicy { get set }setAudiovisualBackgroundPlaybackPolicy(value: AVPlayerAudiovisualBackgroundPlaybackPolicy): Promise<void>Swift declarationnonisolated var audiovisualBackgroundPlaybackPolicy: AVPlayerAudiovisualBackgroundPlaybackPolicy { get set }get automaticallyWaitsToMinimizeStalling(): Promise<boolean>Swift declarationnonisolated var automaticallyWaitsToMinimizeStalling: Bool { get set }setAutomaticallyWaitsToMinimizeStalling(value: boolean): Promise<void>Swift declarationnonisolated var automaticallyWaitsToMinimizeStalling: Bool { get set }get isClosedCaptionDisplayEnabled(): Promise<boolean>Swift declarationvar isClosedCaptionDisplayEnabled: Bool { get set }setIsClosedCaptionDisplayEnabled(value: boolean): Promise<void>Swift declarationvar isClosedCaptionDisplayEnabled: Bool { get set }get currentItem(): Promise<(AVPlayerItem) | null>Swift declarationnonisolated var currentItem: AVPlayerItem? { get }get defaultRate(): Promise<number>Swift declarationnonisolated var defaultRate: Float { get set }setDefaultRate(value: number): Promise<void>Swift declarationnonisolated var defaultRate: Float { get set }get disconnectedFromSystemAudio(): Promise<boolean>Swift declarationnonisolated var disconnectedFromSystemAudio: Bool { get }get error(): Promise<(NativeError) | null>Swift declarationnonisolated var error: (any Error)? { get }get isExternalPlaybackActive(): Promise<boolean>Swift declarationnonisolated var isExternalPlaybackActive: Bool { get }get externalPlaybackVideoGravity(): Promise<AVLayerVideoGravity>Swift declarationnonisolated var externalPlaybackVideoGravity: AVLayerVideoGravity { get set }setExternalPlaybackVideoGravity(value: AVLayerVideoGravity): Promise<void>Swift declarationnonisolated var externalPlaybackVideoGravity: AVLayerVideoGravity { get set }get masterClock(): Promise<(_CoreMedia_CMClock) | null>Swift declarationnonisolated var masterClock: CMClock? { get set }setMasterClock(value?: (_CoreMedia_CMClock) | null): Promise<void>Swift declarationnonisolated var masterClock: CMClock? { get set }get isMuted(): Promise<boolean>Swift declarationnonisolated var isMuted: Bool { get set }setIsMuted(value: boolean): Promise<void>Swift declarationnonisolated var isMuted: Bool { get set }get networkResourcePriority(): Promise<AVPlayer_NetworkResourcePriority>Swift declarationvar networkResourcePriority: AVPlayer.NetworkResourcePriority { get set }setNetworkResourcePriority(value: AVPlayer_NetworkResourcePriority): Promise<void>Swift declarationvar networkResourcePriority: AVPlayer.NetworkResourcePriority { get set }get isOutputObscuredDueToInsufficientExternalProtection(): Promise<boolean>Swift declarationnonisolated var isOutputObscuredDueToInsufficientExternalProtection: Bool { get }get playbackCoordinator(): Promise<AVPlayerPlaybackCoordinator>Swift declarationnonisolated var playbackCoordinator: AVPlayerPlaybackCoordinator { get }get preventsDisplaySleepDuringVideoPlayback(): Promise<boolean>Swift declarationnonisolated var preventsDisplaySleepDuringVideoPlayback: Bool { get set }setPreventsDisplaySleepDuringVideoPlayback(value: boolean): Promise<void>Swift declarationnonisolated var preventsDisplaySleepDuringVideoPlayback: Bool { get set }get rate(): Promise<number>Swift declarationnonisolated var rate: Float { get set }setRate26889(value: number): Promise<void>Swift declarationnonisolated var rate: Float { get set }get reasonForWaitingToPlay(): Promise<(AVPlayer_WaitingReason) | null>Swift declarationnonisolated var reasonForWaitingToPlay: AVPlayer.WaitingReason? { get }get sourceClock(): Promise<(_CoreMedia_CMClock) | null>Swift declarationnonisolated var sourceClock: CMClock? { get set }setSourceClock(value?: (_CoreMedia_CMClock) | null): Promise<void>Swift declarationnonisolated var sourceClock: CMClock? { get set }get status(): Promise<AVPlayer_Status>Swift declarationnonisolated var status: AVPlayer.Status { get }get timeControlStatus(): Promise<AVPlayer_TimeControlStatus>Swift declarationnonisolated var timeControlStatus: AVPlayer.TimeControlStatus { get }get usesExternalPlaybackWhileExternalScreenIsActive(): Promise<boolean>Swift declarationnonisolated var usesExternalPlaybackWhileExternalScreenIsActive: Bool { get set }setUsesExternalPlaybackWhileExternalScreenIsActive(value: boolean): Promise<void>Swift declarationnonisolated var usesExternalPlaybackWhileExternalScreenIsActive: Bool { get set }get videoOutput(): Promise<(AVPlayerVideoOutput) | null>Swift declarationnonisolated var videoOutput: AVPlayerVideoOutput? { get set }setVideoOutput(value?: (AVPlayerVideoOutput) | null): Promise<void>Swift declarationnonisolated var videoOutput: AVPlayerVideoOutput? { get set }get volume(): Promise<number>Swift declarationnonisolated var volume: Float { get set }setVolume(value: number): Promise<void>Swift declarationnonisolated var volume: Float { get set }setDisconnectedFromSystemAudio(disconnected: boolean, completionHandler?: ((() => void)) | null): Promise<void>Swift declarationnonisolated func setDisconnectedFromSystemAudio(_ disconnected: Bool, completionHandler: (@Sendable () -> Void)? = nil)Changes whether the player is disconnected from system audio. This method allows you to dynamically change the player's system audio connection. The operation is asynchronous. Each call to this method will invoke its own completion handler when the operation completes. When changing from `false` to `true`, you should typically call this method first, then deactivate the `AVAudioSession` to allow other audio to resume. ## Using the completion handler In a scenario where changing the value from `false` to `true` should also allow other system audio to resume, you should only deactivate the audio session once the player has disconnected from system audio. ```swift // Disconnect from system audio and let other audio resume player.setDisconnectedFromSystemAudio(true) { try AVAudioSession.sharedInstance().setActive(false, options: .notifyOthersOnDeactivation) } ``` - Parameter disconnected: `true` to disconnect from system audio, `false` to connect to it. - Parameter completionHandler: A block that is called when the connection state change is complete. This block is called on an arbitrary queue. Defaults to `nil`.
No declarations were skipped in this snapshot.