Skip to main content

Crate avplayer

Crate avplayer 

Source
Expand description

§avplayer

Safe Rust bindings for Apple’s AVFoundation playback stack on macOS: AVPlayer, AVPlayerItem, AVPlayerLayer, AVQueuePlayer, AVPlayerLooper, AVAsset, AVURLAsset, and AVAssetReader.

Status: 0.4.0 expands the crate beyond the original playback-only audit with metadata-group, media-selection, asset-variant, fragmented-asset, reader-adaptor, and sample-buffer-display-layer wrappers while retaining the Tier-1 async_api module. See COVERAGE.md.

§Quick start

use avplayer::prelude::*;

fn main() -> Result<(), Box<dyn std::error::Error>> {
    let asset = UrlAsset::from_file_path("target/example-artifacts/test.aiff")?;
    asset.load_values_asynchronously(["duration", "tracks", "metadata"])?;

    let player = Player::from_asset(asset.as_asset())?;
    player.set_action_at_item_end(PlayerActionAtItemEnd::Pause)?;

    println!("duration: {:?}", asset.duration()?);
    println!("tracks: {}", asset.tracks()?.len());
    println!("time control: {:?}", player.time_control_status()?);

    player.play();
    player.pause();
    Ok(())
}

§Async API

Enable the async Cargo feature for executor-agnostic Future wrappers around AVFoundation’s async throws and completion-handler APIs:

avplayer = { version = "0.4", features = ["async"] }
use avplayer::{UrlAsset, async_api::AsyncAsset};

fn main() -> Result<(), Box<dyn std::error::Error>> {
    pollster::block_on(async {
        let asset = UrlAsset::from_file_path("my.mp4")?;
        let props = AsyncAsset::new(asset.as_asset()).load_properties().await?;
        println!("playable={} duration={:?}", props.is_playable, props.duration);
        let tracks = AsyncAsset::new(asset.as_asset()).load_tracks().await?;
        println!("{} tracks", tracks.len());
        Ok(())
    })
}
TypeAPI wrapped
async_api::AsyncAssetAVAsset.load(...), loadTracks(withMediaType:), loadTrack(withTrackID:)
async_api::AsyncPlayerItemAVPlayerItem.seek(to:completionHandler:)
async_api::AsyncPlayerAVPlayer.seek(to:completionHandler:), preroll(atRate:completionHandler:)

KVO / notification streams (multi-fire) belong to a Tier-2 pattern and are not included in this module.

§Highlights

  • AVAsset / AVURLAsset: async key loading, metadata-group construction helpers, media-selection access, asset variants, fragmented-asset/media-extension helpers, URL inspection, and broader asset/track property coverage.
  • AVPlayer: play/pause/rate/seek, volume + mute, action-at-item-end, time-control/waiting-state inspection, time observers, rate-change observation, HDR/background/network policy access, and media-selection criteria application.
  • AVPlayerItem: observation callbacks (including time-jumped / failed-to-end / live-offset changes), buffering/bit-rate/resolution preferences, variant preferences, protected-content authorization status, custom compositor info, outputs, and per-item logs.
  • AVPlayerLayer: player attachment, video gravity, video rect inspection, and displayed pixel-buffer access.
  • AVQueuePlayer / AVPlayerLooper: queue mutation, current-item inspection, loop configuration, and loop-state reporting.
  • AVPlayerItemOutput, AVPlayerItemVideoOutput, AVPlayerItemMetadataOutput, and AVPlayerItemLegibleOutput: attach/detach, base-output timing/suppression helpers, delegate observation, and text-styling/output configuration helpers.
  • AVPlayerItemTrack, AVPlayerItemAccessLog, AVPlayerItemErrorLog, and AVPlayerMediaSelectionCriteria wrappers.
  • AVAssetReader, AssetReaderOutput, AssetReaderTrackOutput, AssetReaderSampleReferenceOutput, metadata/caption adaptors, and AVSampleBufferDisplayLayer are available for frame/sample extraction and display.

§Examples

Every requested subsystem area now has a numbered example:

  • 01_smoke_surface
  • 02_avasset
  • 03_avurlasset
  • 04_avplayer
  • 05_avplayer_item
  • 06_avplayer_layer
  • 07_avqueue_player
  • 08_avplayer_looper
  • 09_avplayer_item_access_log
  • 10_avplayer_item_error_log
  • 11_avplayer_item_metadata_output
  • 12_avplayer_item_video_output
  • 13_avplayer_item_legible_output
  • 14_avplayer_item_track
  • 15_avplayer_media_selection_criteria

Run any example with:

cargo run --example 15_avplayer_media_selection_criteria

Examples write synthesized media into target/example-artifacts/ and avoid /tmp.

§Notes

  • AVPlayerItemTrack materialization is media- and readiness-dependent. On synthesized AIFFs, AVFoundation may legitimately report zero AVPlayerItemTrack instances until it fully prepares the item.
  • The current macOS SDK used for this release does not expose AVPlayerItem.externalMetadata, so PlayerItem::metadata() continues to surface the underlying asset metadata.

§License

Licensed under either of Apache-2.0 or MIT at your option.

Modules§

async_apiasync
Groups AVPlayer framework constants for async_api. Async API for avplayer — executor-agnostic Future wrappers for AVFoundation’s async throws and completion-handler surfaces.
ffi
Groups AVPlayer framework constants for ffi. Raw FFI declarations matching swift-bridge/Sources/AVPlayerBridge.
prelude
Common imports.

Structs§

AffineTransform
Re-exports the AVPlayer framework surface for this item. Mirrors the AVPlayer framework counterpart for AffineTransform.
AggregateAssetDownloadTask
Re-exports the AVPlayer framework surface for this item.
Asset
Re-exports the AVPlayer framework surface for this item. Safe wrapper around AVAsset.
AssetCache
Re-exports the AVPlayer framework surface for this item.
AssetDownloadConfiguration
Re-exports the AVPlayer framework surface for this item.
AssetDownloadContentConfiguration
Re-exports the AVPlayer framework surface for this item.
AssetDownloadStorageManagementPolicy
Re-exports the AVPlayer framework surface for this item.
AssetDownloadStorageManager
Re-exports the AVPlayer framework surface for this item.
AssetDownloadTask
Re-exports the AVPlayer framework surface for this item.
AssetDownloadURLSession
Re-exports the AVPlayer framework surface for this item.
AssetImage
Re-exports the AVPlayer framework surface for this item.
AssetImageGenerator
Re-exports the AVPlayer framework surface for this item.
AssetPlaybackAssistant
Re-exports the AVPlayer framework surface for this item.
AssetReader
Re-exports the AVPlayer framework surface for this item. Safe wrapper around AVAssetReader.
AssetReaderAudioMixOutput
Re-exports the AVPlayer framework surface for this item. AVAssetReaderAudioMixOutput.
AssetReaderOutput
Re-exports the AVPlayer framework surface for this item. Borrowed AVAssetReaderOutput view.
AssetReaderOutputCaptionAdaptor
Re-exports the AVPlayer framework surface for this item. Mirrors AVAssetReaderOutputCaptionAdaptor.
AssetReaderOutputMetadataAdaptor
Re-exports the AVPlayer framework surface for this item. Mirrors AVAssetReaderOutputMetadataAdaptor.
AssetReaderSampleReferenceOutput
Re-exports the AVPlayer framework surface for this item. Mirrors AVAssetReaderSampleReferenceOutput.
AssetReaderTrackOutput
Re-exports the AVPlayer framework surface for this item. AVAssetReaderTrackOutput.
AssetReaderVideoCompositionOutput
Re-exports the AVPlayer framework surface for this item. AVAssetReaderVideoCompositionOutput.
AssetResourceLoader
Re-exports the AVPlayer framework surface for this item.
AssetResourceLoaderObserver
Re-exports the AVPlayer framework surface for this item.
AssetResourceLoadingContentInformationRequest
Re-exports the AVPlayer framework surface for this item.
AssetResourceLoadingDataRequest
Re-exports the AVPlayer framework surface for this item.
AssetResourceLoadingRequest
Re-exports the AVPlayer framework surface for this item.
AssetResourceLoadingRequestor
Re-exports the AVPlayer framework surface for this item.
AssetResourceRenewalRequest
Re-exports the AVPlayer framework surface for this item.
AssetTrack
Re-exports the AVPlayer framework surface for this item. Safe wrapper around AVAssetTrack.
AssetVariant
Re-exports the AVPlayer framework surface for this item. Safe wrapper around AVAssetVariant.
AssetVariantAudioAttributes
Re-exports the AVPlayer framework surface for this item. Safe wrapper around AVAssetVariantAudioAttributes.
AssetVariantAudioRenditionSpecificAttributes
Re-exports the AVPlayer framework surface for this item. Safe wrapper around AVAssetVariantAudioRenditionSpecificAttributes.
AssetVariantQualifier
Re-exports the AVPlayer framework surface for this item. Safe wrapper around AVAssetVariantQualifier.
AssetVariantVideoAttributes
Re-exports the AVPlayer framework surface for this item. Safe wrapper around AVAssetVariantVideoAttributes.
AssetVariantVideoLayoutAttributes
Re-exports the AVPlayer framework surface for this item. Safe wrapper around AVAssetVariantVideoLayoutAttributes.
AudioOutputSettings
Re-exports the AVPlayer framework surface for this item. Builder for linear-PCM audio AVAssetReader output settings.
BoundaryTimeObserver
Re-exports the AVPlayer framework surface for this item. RAII token for addBoundaryTimeObserver.
CaptionGroupInfo
Re-exports the AVPlayer framework surface for this item.
CaptionValidationEvent
Re-exports the AVPlayer framework surface for this item.
CaptionValidationObserver
Re-exports the AVPlayer framework surface for this item.
ContentKeySession
Re-exports the AVPlayer framework surface for this item.
CustomMediaSelectionScheme
Re-exports the AVPlayer framework surface for this item. Safe wrapper around AVCustomMediaSelectionScheme.
DateRangeMetadataGroup
Re-exports the AVPlayer framework surface for this item. Mirrors the AVPlayer framework counterpart for DateRangeMetadataGroup.
DateRangeMetadataGroupHandle
Re-exports the AVPlayer framework surface for this item. Owned AVDateRangeMetadataGroup wrapper.
FragmentedAsset
Re-exports the AVPlayer framework surface for this item.
FragmentedAssetMinder
Re-exports the AVPlayer framework surface for this item.
FragmentedAssetTrack
Re-exports the AVPlayer framework surface for this item.
GeneratedAssetImage
Re-exports the AVPlayer framework surface for this item.
KeyLoadStatus
Re-exports the AVPlayer framework surface for this item. Result for a single key passed to load_values_asynchronously.
MediaExtensionProperties
Re-exports the AVPlayer framework surface for this item.
MediaExtensionPropertiesInfo
Re-exports the AVPlayer framework surface for this item.
MediaPresentationSelector
Re-exports the AVPlayer framework surface for this item. Safe wrapper around AVMediaPresentationSelector.
MediaPresentationSetting
Re-exports the AVPlayer framework surface for this item. Safe wrapper around AVMediaPresentationSetting.
MediaSelection
Re-exports the AVPlayer framework surface for this item. Safe wrapper around AVMediaSelection.
MediaSelectionGroup
Re-exports the AVPlayer framework surface for this item. Safe wrapper around AVMediaSelectionGroup.
MediaSelectionOption
Re-exports the AVPlayer framework surface for this item. Safe wrapper around AVMediaSelectionOption.
MetadataCollectorObserver
Re-exports the AVPlayer framework surface for this item. Mirrors the AVPlayer framework counterpart for MetadataCollectorObserver.
MetadataGroup
Re-exports the AVPlayer framework surface for this item. Borrowed AVMetadataGroup view.
MetadataItem
Re-exports the AVPlayer framework surface for this item. Simplified AVMetadataItem view suitable for asset/player inspection.
MetadataItemFilter
Re-exports the AVPlayer framework surface for this item. Owned AVMetadataItemFilter wrapper.
MetadataOutputObserver
Re-exports the AVPlayer framework surface for this item. Mirrors the AVPlayer framework counterpart for MetadataOutputObserver.
MutableDateRangeMetadataGroup
Re-exports the AVPlayer framework surface for this item. Owned AVMutableDateRangeMetadataGroup wrapper.
MutableMediaSelection
Re-exports the AVPlayer framework surface for this item. Safe wrapper around AVMutableMediaSelection.
MutableMetadataItem
Re-exports the AVPlayer framework surface for this item. Owned AVMutableMetadataItem wrapper.
MutableTimedMetadataGroup
Re-exports the AVPlayer framework surface for this item. Owned AVMutableTimedMetadataGroup wrapper.
PeriodicTimeObserver
Re-exports the AVPlayer framework surface for this item. RAII token for addPeriodicTimeObserver.
Player
Re-exports the AVPlayer framework surface for this item. Safe wrapper around AVPlayer.
PlayerIntegratedTimelineOutOfSyncEvent
Re-exports the AVPlayer framework surface for this item. Mirrors the AVPlayer framework counterpart for PlayerIntegratedTimelineOutOfSyncEvent.
PlayerInterstitialEvent
Re-exports the AVPlayer framework surface for this item. Mirrors the AVPlayer framework counterpart for PlayerInterstitialEvent.
PlayerInterstitialEventController
Re-exports the AVPlayer framework surface for this item. Mirrors the AVPlayer framework counterpart for PlayerInterstitialEventController.
PlayerInterstitialEventInfo
Re-exports the AVPlayer framework surface for this item. Mirrors the AVPlayer framework counterpart for PlayerInterstitialEventInfo.
PlayerInterstitialEventMonitor
Re-exports the AVPlayer framework surface for this item. Mirrors the AVPlayer framework counterpart for PlayerInterstitialEventMonitor.
PlayerInterstitialEventMonitorObserver
Re-exports the AVPlayer framework surface for this item. Mirrors the AVPlayer framework counterpart for PlayerInterstitialEventMonitorObserver.
PlayerInterstitialEventMonitorState
Re-exports the AVPlayer framework surface for this item. Mirrors the AVPlayer framework counterpart for PlayerInterstitialEventMonitorState.
PlayerInterstitialEventRestrictions
Re-exports the AVPlayer framework surface for this item. Mirrors the AVPlayer framework counterpart for PlayerInterstitialEventRestrictions.
PlayerItem
Re-exports the AVPlayer framework surface for this item. Safe wrapper around AVPlayerItem.
PlayerItemAccessLog
Re-exports the AVPlayer framework surface for this item. Mirrors the AVPlayer framework counterpart for PlayerItemAccessLog.
PlayerItemAccessLogEvent
Re-exports the AVPlayer framework surface for this item. Mirrors the AVPlayer framework counterpart for PlayerItemAccessLogEvent.
PlayerItemErrorLog
Re-exports the AVPlayer framework surface for this item. Mirrors the AVPlayer framework counterpart for PlayerItemErrorLog.
PlayerItemErrorLogEvent
Re-exports the AVPlayer framework surface for this item. Mirrors the AVPlayer framework counterpart for PlayerItemErrorLogEvent.
PlayerItemIntegratedTimeline
Re-exports the AVPlayer framework surface for this item. Mirrors the AVPlayer framework counterpart for PlayerItemIntegratedTimeline.
PlayerItemIntegratedTimelineInfo
Re-exports the AVPlayer framework surface for this item. Mirrors the AVPlayer framework counterpart for PlayerItemIntegratedTimelineInfo.
PlayerItemIntegratedTimelineObserver
Re-exports the AVPlayer framework surface for this item. Mirrors the AVPlayer framework counterpart for PlayerItemIntegratedTimelineObserver.
PlayerItemIntegratedTimelineSegment
Re-exports the AVPlayer framework surface for this item. Mirrors the AVPlayer framework counterpart for PlayerItemIntegratedTimelineSegment.
PlayerItemIntegratedTimelineSegmentInfo
Re-exports the AVPlayer framework surface for this item. Mirrors the AVPlayer framework counterpart for PlayerItemIntegratedTimelineSegmentInfo.
PlayerItemIntegratedTimelineSnapshot
Re-exports the AVPlayer framework surface for this item. Mirrors the AVPlayer framework counterpart for PlayerItemIntegratedTimelineSnapshot.
PlayerItemIntegratedTimelineSnapshotInfo
Re-exports the AVPlayer framework surface for this item. Mirrors the AVPlayer framework counterpart for PlayerItemIntegratedTimelineSnapshotInfo.
PlayerItemLegibleOutput
Re-exports the AVPlayer framework surface for this item. Mirrors the AVPlayer framework counterpart for PlayerItemLegibleOutput.
PlayerItemLegibleOutputObserver
Re-exports the AVPlayer framework surface for this item. Mirrors the AVPlayer framework counterpart for PlayerItemLegibleOutputObserver.
PlayerItemMediaDataCollector
Re-exports the AVPlayer framework surface for this item. Borrowed AVPlayerItemMediaDataCollector view.
PlayerItemMediaDataCollectorInfo
Re-exports the AVPlayer framework surface for this item. Mirrors the AVPlayer framework counterpart for PlayerItemMediaDataCollectorInfo.
PlayerItemMetadataCollector
Re-exports the AVPlayer framework surface for this item. Mirrors the AVPlayer framework counterpart for PlayerItemMetadataCollector.
PlayerItemMetadataOutput
Re-exports the AVPlayer framework surface for this item. Mirrors the AVPlayer framework counterpart for PlayerItemMetadataOutput.
PlayerItemObserver
Re-exports the AVPlayer framework surface for this item. KVO + notification observer for AVPlayerItem.
PlayerItemOutput
Re-exports the AVPlayer framework surface for this item. Borrowed view of the abstract AVPlayerItemOutput base class.
PlayerItemRenderedLegibleOutput
Re-exports the AVPlayer framework surface for this item. Mirrors the AVPlayer framework counterpart for PlayerItemRenderedLegibleOutput.
PlayerItemSegment
Re-exports the AVPlayer framework surface for this item. Mirrors the AVPlayer framework counterpart for PlayerItemIntegratedTimelineSegment.
PlayerItemSegmentInfo
Re-exports the AVPlayer framework surface for this item. Mirrors the AVPlayer framework counterpart for PlayerItemIntegratedTimelineSegmentInfo.
PlayerItemTrack
Re-exports the AVPlayer framework surface for this item. Mirrors the AVPlayer framework counterpart for PlayerItemTrack.
PlayerItemVideoCompositorInfo
Re-exports the AVPlayer framework surface for this item. Mirrors the AVPlayer framework counterpart for PlayerItemVideoCompositorInfo.
PlayerItemVideoOutput
Re-exports the AVPlayer framework surface for this item. Mirrors the AVPlayer framework counterpart for PlayerItemVideoOutput.
PlayerItemVideoOutputObserver
Re-exports the AVPlayer framework surface for this item. Mirrors the AVPlayer framework counterpart for PlayerItemVideoOutputObserver.
PlayerLayer
Re-exports the AVPlayer framework surface for this item. Mirrors the AVPlayer framework counterpart for PlayerLayer.
PlayerLooper
Re-exports the AVPlayer framework surface for this item. Mirrors the AVPlayer framework counterpart for PlayerLooper.
PlayerMediaSelectionCriteria
Re-exports the AVPlayer framework surface for this item. Mirrors the AVPlayer framework counterpart for PlayerMediaSelectionCriteria.
PlayerRateDidChangeEvent
Re-exports the AVPlayer framework surface for this item. Mirrors the AVPlayer framework counterpart for PlayerRateDidChangeEvent.
PlayerRateDidChangeObserver
Re-exports the AVPlayer framework surface for this item. Mirrors the AVPlayer framework counterpart for PlayerRateDidChangeObserver.
PlayerVideoOutput
Re-exports the AVPlayer framework surface for this item. Mirrors the AVPlayer framework counterpart for PlayerVideoOutput.
PlayerVideoOutputConfiguration
Re-exports the AVPlayer framework surface for this item. Mirrors the AVPlayer framework counterpart for PlayerVideoOutputConfiguration.
PlayerVideoOutputSample
Re-exports the AVPlayer framework surface for this item. Mirrors the AVPlayer framework counterpart for PlayerVideoOutputSample.
PlayerVideoOutputTagCollection
Re-exports the AVPlayer framework surface for this item. Mirrors the AVPlayer framework counterpart for PlayerVideoOutputTagCollection.
PlayerVideoTaggedBuffer
Re-exports the AVPlayer framework surface for this item. Mirrors the AVPlayer framework counterpart for PlayerVideoTaggedBuffer.
QueuePlayer
Re-exports the AVPlayer framework surface for this item. Mirrors the AVPlayer framework counterpart for QueuePlayer.
Rect
Re-exports the AVPlayer framework surface for this item. Mirrors the AVPlayer framework counterpart for Rect.
RenderedCaptionImage
Re-exports the AVPlayer framework surface for this item. Mirrors the AVPlayer framework counterpart for RenderedCaptionImage.
RenderedLegibleOutputObserver
Re-exports the AVPlayer framework surface for this item. Mirrors the AVPlayer framework counterpart for RenderedLegibleOutputObserver.
SampleBufferDisplayLayer
Re-exports the AVPlayer framework surface for this item.
Size
Re-exports the AVPlayer framework surface for this item. Serializable CGSize mirror.
TimeRange
Re-exports the AVPlayer framework surface for this item. Serializable representation of CMTimeRange.
TimedMetadataGroup
Re-exports the AVPlayer framework surface for this item. Mirrors the AVPlayer framework counterpart for TimedMetadataGroup.
TimedMetadataGroupHandle
Re-exports the AVPlayer framework surface for this item. Owned AVTimedMetadataGroup wrapper.
UrlAsset
Re-exports the AVPlayer framework surface for this item. AVURLAsset convenience wrapper around Asset.
UrlAssetOptions
Re-exports the AVPlayer framework surface for this item. Mirrors the AVPlayer framework counterpart for UrlAssetOptions.
VariantPreferences
Re-exports the AVPlayer framework surface for this item. Mirrors the AVPlayer framework counterpart for VariantPreferences.
VideoOutputSettings
Re-exports the AVPlayer framework surface for this item. Builder for uncompressed video AVAssetReader output settings.
VideoOutputSpecification
Re-exports the AVPlayer framework surface for this item. Mirrors the AVPlayer framework counterpart for VideoOutputSpecification.

Enums§

AVPlayerError
Re-exports the AVPlayer framework surface for this item. Top-level error type returned by fallible APIs in this crate.
AssetDownloadDelegateEvent
Re-exports the AVPlayer framework surface for this item.
AssetDownloadTaskState
Re-exports the AVPlayer framework surface for this item.
AssetDownloadedAssetEvictionPriority
Re-exports the AVPlayer framework surface for this item.
AssetImageGeneratorApertureMode
Re-exports the AVPlayer framework surface for this item.
AssetImageGeneratorDynamicRangePolicy
Re-exports the AVPlayer framework surface for this item.
AssetPlaybackConfigurationOption
Re-exports the AVPlayer framework surface for this item.
AssetReaderStatus
Re-exports the AVPlayer framework surface for this item. AVAssetReaderStatus.
AssetResourceLoaderEvent
Re-exports the AVPlayer framework surface for this item.
AudioTimePitchAlgorithm
Re-exports the AVPlayer framework surface for this item. Mirrors the AVPlayer framework counterpart for AudioTimePitchAlgorithm.
ContentAuthorizationStatus
Re-exports the AVPlayer framework surface for this item. Mirrors the AVPlayer framework counterpart for ContentAuthorizationStatus.
ContentKeySystem
Re-exports the AVPlayer framework surface for this item.
KeyValueStatus
Re-exports the AVPlayer framework surface for this item. Per-key loading state returned by AVAsynchronousKeyValueLoading.
MediaCharacteristic
Re-exports the AVPlayer framework surface for this item. Mirrors the AVPlayer framework counterpart for MediaCharacteristic.
MediaType
Re-exports the AVPlayer framework surface for this item. Simplified media-type classification for asset tracks and reader outputs.
MetadataCollectorEvent
Re-exports the AVPlayer framework surface for this item. Mirrors the AVPlayer framework counterpart for MetadataCollectorEvent.
MetadataOutputEvent
Re-exports the AVPlayer framework surface for this item. Mirrors the AVPlayer framework counterpart for MetadataOutputEvent.
PlayerActionAtItemEnd
Re-exports the AVPlayer framework surface for this item. Mirrors the AVPlayer framework counterpart for PlayerActionAtItemEnd.
PlayerAudiovisualBackgroundPlaybackPolicy
Re-exports the AVPlayer framework surface for this item. Mirrors the AVPlayer framework counterpart for PlayerAudiovisualBackgroundPlaybackPolicy.
PlayerIntegratedTimelineSnapshotsOutOfSyncReason
Re-exports the AVPlayer framework surface for this item. Mirrors the AVPlayer framework counterpart for PlayerIntegratedTimelineSnapshotsOutOfSyncReason.
PlayerInterstitialEventAssetListResponseStatus
Re-exports the AVPlayer framework surface for this item. Mirrors the AVPlayer framework counterpart for PlayerInterstitialEventAssetListResponseStatus.
PlayerInterstitialEventCue
Re-exports the AVPlayer framework surface for this item. Mirrors the AVPlayer framework counterpart for PlayerInterstitialEventCue.
PlayerInterstitialEventMonitorEvent
Re-exports the AVPlayer framework surface for this item. Mirrors the AVPlayer framework counterpart for PlayerInterstitialEventMonitorEvent.
PlayerInterstitialEventSkippableEventState
Re-exports the AVPlayer framework surface for this item. Mirrors the AVPlayer framework counterpart for PlayerInterstitialEventSkippableEventState.
PlayerInterstitialEventTimelineOccupancy
Re-exports the AVPlayer framework surface for this item. Mirrors the AVPlayer framework counterpart for PlayerInterstitialEventTimelineOccupancy.
PlayerItemEvent
Re-exports the AVPlayer framework surface for this item. Events emitted by PlayerItemObserver.
PlayerItemLegibleOutputEvent
Re-exports the AVPlayer framework surface for this item. Mirrors the AVPlayer framework counterpart for PlayerItemLegibleOutputEvent.
PlayerItemLegibleOutputTextStylingResolution
Re-exports the AVPlayer framework surface for this item. Mirrors the AVPlayer framework counterpart for PlayerItemLegibleOutputTextStylingResolution.
PlayerItemMediaDataCollectorKind
Re-exports the AVPlayer framework surface for this item. Mirrors the AVPlayer framework counterpart for PlayerItemMediaDataCollectorKind.
PlayerItemSegmentType
Re-exports the AVPlayer framework surface for this item. Mirrors the AVPlayer framework counterpart for PlayerItemSegmentType.
PlayerItemStatus
Re-exports the AVPlayer framework surface for this item. AVPlayerItemStatus.
PlayerItemTrackVideoFieldMode
Re-exports the AVPlayer framework surface for this item. Mirrors the AVPlayer framework counterpart for PlayerItemTrackVideoFieldMode.
PlayerItemVideoOutputEvent
Re-exports the AVPlayer framework surface for this item. Mirrors the AVPlayer framework counterpart for PlayerItemVideoOutputEvent.
PlayerLooperItemOrdering
Re-exports the AVPlayer framework surface for this item. Mirrors the AVPlayer framework counterpart for PlayerLooperItemOrdering.
PlayerLooperStatus
Re-exports the AVPlayer framework surface for this item. Mirrors the AVPlayer framework counterpart for PlayerLooperStatus.
PlayerNetworkResourcePriority
Re-exports the AVPlayer framework surface for this item. Mirrors the AVPlayer framework counterpart for PlayerNetworkResourcePriority.
PlayerRateDidChangeReason
Re-exports the AVPlayer framework surface for this item. Mirrors the AVPlayer framework counterpart for PlayerRateDidChangeReason.
PlayerStatus
Re-exports the AVPlayer framework surface for this item. AVPlayerStatus.
PlayerTimeControlStatus
Re-exports the AVPlayer framework surface for this item. Mirrors the AVPlayer framework counterpart for PlayerTimeControlStatus.
PlayerVideoOutputTagCollectionPreset
Re-exports the AVPlayer framework surface for this item. Mirrors the AVPlayer framework counterpart for PlayerVideoOutputTagCollectionPreset.
PlayerVideoTaggedBufferKind
Re-exports the AVPlayer framework surface for this item. Mirrors the AVPlayer framework counterpart for PlayerVideoTaggedBufferKind.
PlayerWaitingReason
Re-exports the AVPlayer framework surface for this item. Mirrors the AVPlayer framework counterpart for PlayerWaitingReason.
QueuedSampleBufferRenderingStatus
Re-exports the AVPlayer framework surface for this item.
RenderedLegibleOutputEvent
Re-exports the AVPlayer framework surface for this item. Mirrors the AVPlayer framework counterpart for RenderedLegibleOutputEvent.
Time
Re-exports the AVPlayer framework surface for this item. Serializable representation of CMTime.
VideoGravity
Re-exports the AVPlayer framework surface for this item. Mirrors the AVPlayer framework counterpart for VideoGravity.

Functions§

player_eligible_for_hdr_playback_did_change_notification
Re-exports the AVPlayer framework surface for this item. Calls the AVPlayer framework counterpart for player_eligible_for_hdr_playback_did_change_notification.
player_integrated_timeline_snapshots_out_of_sync_notification
Re-exports the AVPlayer framework surface for this item. Calls the AVPlayer framework counterpart for player_integrated_timeline_snapshots_out_of_sync_notification.
player_integrated_timeline_snapshots_out_of_sync_reason_current_segment_changed
Re-exports the AVPlayer framework surface for this item. Calls the AVPlayer framework counterpart for player_integrated_timeline_snapshots_out_of_sync_reason_current_segment_changed.
player_integrated_timeline_snapshots_out_of_sync_reason_key
Re-exports the AVPlayer framework surface for this item. Calls the AVPlayer framework counterpart for player_integrated_timeline_snapshots_out_of_sync_reason_key.
player_integrated_timeline_snapshots_out_of_sync_reason_loaded_time_ranges_changed
Re-exports the AVPlayer framework surface for this item. Calls the AVPlayer framework counterpart for player_integrated_timeline_snapshots_out_of_sync_reason_loaded_time_ranges_changed.
player_integrated_timeline_snapshots_out_of_sync_reason_segments_changed
Re-exports the AVPlayer framework surface for this item. Calls the AVPlayer framework counterpart for player_integrated_timeline_snapshots_out_of_sync_reason_segments_changed.
player_waiting_during_interstitial_event_reason
Re-exports the AVPlayer framework surface for this item. Calls the AVPlayer framework counterpart for player_waiting_during_interstitial_event_reason.

Type Aliases§

PlayerItemVideoOutputSettings
Re-exports the AVPlayer framework surface for this item. Mirrors the AVPlayer framework counterpart for PlayerItemVideoOutputSettings.
PlayerVideoOutputSettings
Re-exports the AVPlayer framework surface for this item. Mirrors the AVPlayer framework counterpart for PlayerVideoOutputSettings.