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.0expands 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-1async_apimodule. SeeCOVERAGE.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(())
})
}| Type | API wrapped |
|---|---|
async_api::AsyncAsset | AVAsset.load(...), loadTracks(withMediaType:), loadTrack(withTrackID:) |
async_api::AsyncPlayerItem | AVPlayerItem.seek(to:completionHandler:) |
async_api::AsyncPlayer | AVPlayer.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, andAVPlayerItemLegibleOutput: attach/detach, base-output timing/suppression helpers, delegate observation, and text-styling/output configuration helpers.AVPlayerItemTrack,AVPlayerItemAccessLog,AVPlayerItemErrorLog, andAVPlayerMediaSelectionCriteriawrappers.AVAssetReader,AssetReaderOutput,AssetReaderTrackOutput,AssetReaderSampleReferenceOutput, metadata/caption adaptors, andAVSampleBufferDisplayLayerare available for frame/sample extraction and display.
§Examples
Every requested subsystem area now has a numbered example:
01_smoke_surface02_avasset03_avurlasset04_avplayer05_avplayer_item06_avplayer_layer07_avqueue_player08_avplayer_looper09_avplayer_item_access_log10_avplayer_item_error_log11_avplayer_item_metadata_output12_avplayer_item_video_output13_avplayer_item_legible_output14_avplayer_item_track15_avplayer_media_selection_criteria
Run any example with:
cargo run --example 15_avplayer_media_selection_criteriaExamples write synthesized media into target/example-artifacts/ and avoid /tmp.
§Notes
AVPlayerItemTrackmaterialization is media- and readiness-dependent. On synthesizedAIFFs,AVFoundationmay legitimately report zeroAVPlayerItemTrackinstances until it fully prepares the item.- The current macOS SDK used for this release does not expose
AVPlayerItem.externalMetadata, soPlayerItem::metadata()continues to surface the underlying asset metadata.
§License
Licensed under either of Apache-2.0 or MIT at your option.
Modules§
- async_
api async - Groups
AVPlayerframework constants forasync_api. Async API foravplayer— executor-agnosticFuturewrappers forAVFoundation’sasync throwsand completion-handler surfaces. - ffi
- Groups
AVPlayerframework constants forffi. Raw FFI declarations matchingswift-bridge/Sources/AVPlayerBridge. - prelude
- Common imports.
Structs§
- Affine
Transform - Re-exports the
AVPlayerframework surface for this item. Mirrors theAVPlayerframework counterpart forAffineTransform. - Aggregate
Asset Download Task - Re-exports the
AVPlayerframework surface for this item. - Asset
- Re-exports the
AVPlayerframework surface for this item. Safe wrapper aroundAVAsset. - Asset
Cache - Re-exports the
AVPlayerframework surface for this item. - Asset
Download Configuration - Re-exports the
AVPlayerframework surface for this item. - Asset
Download Content Configuration - Re-exports the
AVPlayerframework surface for this item. - Asset
Download Storage Management Policy - Re-exports the
AVPlayerframework surface for this item. - Asset
Download Storage Manager - Re-exports the
AVPlayerframework surface for this item. - Asset
Download Task - Re-exports the
AVPlayerframework surface for this item. - Asset
DownloadURL Session - Re-exports the
AVPlayerframework surface for this item. - Asset
Image - Re-exports the
AVPlayerframework surface for this item. - Asset
Image Generator - Re-exports the
AVPlayerframework surface for this item. - Asset
Playback Assistant - Re-exports the
AVPlayerframework surface for this item. - Asset
Reader - Re-exports the
AVPlayerframework surface for this item. Safe wrapper aroundAVAssetReader. - Asset
Reader Audio MixOutput - Re-exports the
AVPlayerframework surface for this item.AVAssetReaderAudioMixOutput. - Asset
Reader Output - Re-exports the
AVPlayerframework surface for this item. BorrowedAVAssetReaderOutputview. - Asset
Reader Output Caption Adaptor - Re-exports the
AVPlayerframework surface for this item. MirrorsAVAssetReaderOutputCaptionAdaptor. - Asset
Reader Output Metadata Adaptor - Re-exports the
AVPlayerframework surface for this item. MirrorsAVAssetReaderOutputMetadataAdaptor. - Asset
Reader Sample Reference Output - Re-exports the
AVPlayerframework surface for this item. MirrorsAVAssetReaderSampleReferenceOutput. - Asset
Reader Track Output - Re-exports the
AVPlayerframework surface for this item.AVAssetReaderTrackOutput. - Asset
Reader Video Composition Output - Re-exports the
AVPlayerframework surface for this item.AVAssetReaderVideoCompositionOutput. - Asset
Resource Loader - Re-exports the
AVPlayerframework surface for this item. - Asset
Resource Loader Observer - Re-exports the
AVPlayerframework surface for this item. - Asset
Resource Loading Content Information Request - Re-exports the
AVPlayerframework surface for this item. - Asset
Resource Loading Data Request - Re-exports the
AVPlayerframework surface for this item. - Asset
Resource Loading Request - Re-exports the
AVPlayerframework surface for this item. - Asset
Resource Loading Requestor - Re-exports the
AVPlayerframework surface for this item. - Asset
Resource Renewal Request - Re-exports the
AVPlayerframework surface for this item. - Asset
Track - Re-exports the
AVPlayerframework surface for this item. Safe wrapper aroundAVAssetTrack. - Asset
Variant - Re-exports the
AVPlayerframework surface for this item. Safe wrapper aroundAVAssetVariant. - Asset
Variant Audio Attributes - Re-exports the
AVPlayerframework surface for this item. Safe wrapper aroundAVAssetVariantAudioAttributes. - Asset
Variant Audio Rendition Specific Attributes - Re-exports the
AVPlayerframework surface for this item. Safe wrapper aroundAVAssetVariantAudioRenditionSpecificAttributes. - Asset
Variant Qualifier - Re-exports the
AVPlayerframework surface for this item. Safe wrapper aroundAVAssetVariantQualifier. - Asset
Variant Video Attributes - Re-exports the
AVPlayerframework surface for this item. Safe wrapper aroundAVAssetVariantVideoAttributes. - Asset
Variant Video Layout Attributes - Re-exports the
AVPlayerframework surface for this item. Safe wrapper aroundAVAssetVariantVideoLayoutAttributes. - Audio
Output Settings - Re-exports the
AVPlayerframework surface for this item. Builder for linear-PCM audioAVAssetReaderoutput settings. - Boundary
Time Observer - Re-exports the
AVPlayerframework surface for this item. RAII token foraddBoundaryTimeObserver. - Caption
Group Info - Re-exports the
AVPlayerframework surface for this item. - Caption
Validation Event - Re-exports the
AVPlayerframework surface for this item. - Caption
Validation Observer - Re-exports the
AVPlayerframework surface for this item. - Content
KeySession - Re-exports the
AVPlayerframework surface for this item. - Custom
Media Selection Scheme - Re-exports the
AVPlayerframework surface for this item. Safe wrapper aroundAVCustomMediaSelectionScheme. - Date
Range Metadata Group - Re-exports the
AVPlayerframework surface for this item. Mirrors theAVPlayerframework counterpart forDateRangeMetadataGroup. - Date
Range Metadata Group Handle - Re-exports the
AVPlayerframework surface for this item. OwnedAVDateRangeMetadataGroupwrapper. - Fragmented
Asset - Re-exports the
AVPlayerframework surface for this item. - Fragmented
Asset Minder - Re-exports the
AVPlayerframework surface for this item. - Fragmented
Asset Track - Re-exports the
AVPlayerframework surface for this item. - Generated
Asset Image - Re-exports the
AVPlayerframework surface for this item. - KeyLoad
Status - Re-exports the
AVPlayerframework surface for this item. Result for a single key passed toload_values_asynchronously. - Media
Extension Properties - Re-exports the
AVPlayerframework surface for this item. - Media
Extension Properties Info - Re-exports the
AVPlayerframework surface for this item. - Media
Presentation Selector - Re-exports the
AVPlayerframework surface for this item. Safe wrapper aroundAVMediaPresentationSelector. - Media
Presentation Setting - Re-exports the
AVPlayerframework surface for this item. Safe wrapper aroundAVMediaPresentationSetting. - Media
Selection - Re-exports the
AVPlayerframework surface for this item. Safe wrapper aroundAVMediaSelection. - Media
Selection Group - Re-exports the
AVPlayerframework surface for this item. Safe wrapper aroundAVMediaSelectionGroup. - Media
Selection Option - Re-exports the
AVPlayerframework surface for this item. Safe wrapper aroundAVMediaSelectionOption. - Metadata
Collector Observer - Re-exports the
AVPlayerframework surface for this item. Mirrors theAVPlayerframework counterpart forMetadataCollectorObserver. - Metadata
Group - Re-exports the
AVPlayerframework surface for this item. BorrowedAVMetadataGroupview. - Metadata
Item - Re-exports the
AVPlayerframework surface for this item. SimplifiedAVMetadataItemview suitable for asset/player inspection. - Metadata
Item Filter - Re-exports the
AVPlayerframework surface for this item. OwnedAVMetadataItemFilterwrapper. - Metadata
Output Observer - Re-exports the
AVPlayerframework surface for this item. Mirrors theAVPlayerframework counterpart forMetadataOutputObserver. - Mutable
Date Range Metadata Group - Re-exports the
AVPlayerframework surface for this item. OwnedAVMutableDateRangeMetadataGroupwrapper. - Mutable
Media Selection - Re-exports the
AVPlayerframework surface for this item. Safe wrapper aroundAVMutableMediaSelection. - Mutable
Metadata Item - Re-exports the
AVPlayerframework surface for this item. OwnedAVMutableMetadataItemwrapper. - Mutable
Timed Metadata Group - Re-exports the
AVPlayerframework surface for this item. OwnedAVMutableTimedMetadataGroupwrapper. - Periodic
Time Observer - Re-exports the
AVPlayerframework surface for this item. RAII token foraddPeriodicTimeObserver. - Player
- Re-exports the
AVPlayerframework surface for this item. Safe wrapper aroundAVPlayer. - Player
Integrated Timeline OutOf Sync Event - Re-exports the
AVPlayerframework surface for this item. Mirrors theAVPlayerframework counterpart forPlayerIntegratedTimelineOutOfSyncEvent. - Player
Interstitial Event - Re-exports the
AVPlayerframework surface for this item. Mirrors theAVPlayerframework counterpart forPlayerInterstitialEvent. - Player
Interstitial Event Controller - Re-exports the
AVPlayerframework surface for this item. Mirrors theAVPlayerframework counterpart forPlayerInterstitialEventController. - Player
Interstitial Event Info - Re-exports the
AVPlayerframework surface for this item. Mirrors theAVPlayerframework counterpart forPlayerInterstitialEventInfo. - Player
Interstitial Event Monitor - Re-exports the
AVPlayerframework surface for this item. Mirrors theAVPlayerframework counterpart forPlayerInterstitialEventMonitor. - Player
Interstitial Event Monitor Observer - Re-exports the
AVPlayerframework surface for this item. Mirrors theAVPlayerframework counterpart forPlayerInterstitialEventMonitorObserver. - Player
Interstitial Event Monitor State - Re-exports the
AVPlayerframework surface for this item. Mirrors theAVPlayerframework counterpart forPlayerInterstitialEventMonitorState. - Player
Interstitial Event Restrictions - Re-exports the
AVPlayerframework surface for this item. Mirrors theAVPlayerframework counterpart forPlayerInterstitialEventRestrictions. - Player
Item - Re-exports the
AVPlayerframework surface for this item. Safe wrapper aroundAVPlayerItem. - Player
Item Access Log - Re-exports the
AVPlayerframework surface for this item. Mirrors theAVPlayerframework counterpart forPlayerItemAccessLog. - Player
Item Access LogEvent - Re-exports the
AVPlayerframework surface for this item. Mirrors theAVPlayerframework counterpart forPlayerItemAccessLogEvent. - Player
Item Error Log - Re-exports the
AVPlayerframework surface for this item. Mirrors theAVPlayerframework counterpart forPlayerItemErrorLog. - Player
Item Error LogEvent - Re-exports the
AVPlayerframework surface for this item. Mirrors theAVPlayerframework counterpart forPlayerItemErrorLogEvent. - Player
Item Integrated Timeline - Re-exports the
AVPlayerframework surface for this item. Mirrors theAVPlayerframework counterpart forPlayerItemIntegratedTimeline. - Player
Item Integrated Timeline Info - Re-exports the
AVPlayerframework surface for this item. Mirrors theAVPlayerframework counterpart forPlayerItemIntegratedTimelineInfo. - Player
Item Integrated Timeline Observer - Re-exports the
AVPlayerframework surface for this item. Mirrors theAVPlayerframework counterpart forPlayerItemIntegratedTimelineObserver. - Player
Item Integrated Timeline Segment - Re-exports the
AVPlayerframework surface for this item. Mirrors theAVPlayerframework counterpart forPlayerItemIntegratedTimelineSegment. - Player
Item Integrated Timeline Segment Info - Re-exports the
AVPlayerframework surface for this item. Mirrors theAVPlayerframework counterpart forPlayerItemIntegratedTimelineSegmentInfo. - Player
Item Integrated Timeline Snapshot - Re-exports the
AVPlayerframework surface for this item. Mirrors theAVPlayerframework counterpart forPlayerItemIntegratedTimelineSnapshot. - Player
Item Integrated Timeline Snapshot Info - Re-exports the
AVPlayerframework surface for this item. Mirrors theAVPlayerframework counterpart forPlayerItemIntegratedTimelineSnapshotInfo. - Player
Item Legible Output - Re-exports the
AVPlayerframework surface for this item. Mirrors theAVPlayerframework counterpart forPlayerItemLegibleOutput. - Player
Item Legible Output Observer - Re-exports the
AVPlayerframework surface for this item. Mirrors theAVPlayerframework counterpart forPlayerItemLegibleOutputObserver. - Player
Item Media Data Collector - Re-exports the
AVPlayerframework surface for this item. BorrowedAVPlayerItemMediaDataCollectorview. - Player
Item Media Data Collector Info - Re-exports the
AVPlayerframework surface for this item. Mirrors theAVPlayerframework counterpart forPlayerItemMediaDataCollectorInfo. - Player
Item Metadata Collector - Re-exports the
AVPlayerframework surface for this item. Mirrors theAVPlayerframework counterpart forPlayerItemMetadataCollector. - Player
Item Metadata Output - Re-exports the
AVPlayerframework surface for this item. Mirrors theAVPlayerframework counterpart forPlayerItemMetadataOutput. - Player
Item Observer - Re-exports the
AVPlayerframework surface for this item. KVO + notification observer forAVPlayerItem. - Player
Item Output - Re-exports the
AVPlayerframework surface for this item. Borrowed view of the abstractAVPlayerItemOutputbase class. - Player
Item Rendered Legible Output - Re-exports the
AVPlayerframework surface for this item. Mirrors theAVPlayerframework counterpart forPlayerItemRenderedLegibleOutput. - Player
Item Segment - Re-exports the
AVPlayerframework surface for this item. Mirrors theAVPlayerframework counterpart forPlayerItemIntegratedTimelineSegment. - Player
Item Segment Info - Re-exports the
AVPlayerframework surface for this item. Mirrors theAVPlayerframework counterpart forPlayerItemIntegratedTimelineSegmentInfo. - Player
Item Track - Re-exports the
AVPlayerframework surface for this item. Mirrors theAVPlayerframework counterpart forPlayerItemTrack. - Player
Item Video Compositor Info - Re-exports the
AVPlayerframework surface for this item. Mirrors theAVPlayerframework counterpart forPlayerItemVideoCompositorInfo. - Player
Item Video Output - Re-exports the
AVPlayerframework surface for this item. Mirrors theAVPlayerframework counterpart forPlayerItemVideoOutput. - Player
Item Video Output Observer - Re-exports the
AVPlayerframework surface for this item. Mirrors theAVPlayerframework counterpart forPlayerItemVideoOutputObserver. - Player
Layer - Re-exports the
AVPlayerframework surface for this item. Mirrors theAVPlayerframework counterpart forPlayerLayer. - Player
Looper - Re-exports the
AVPlayerframework surface for this item. Mirrors theAVPlayerframework counterpart forPlayerLooper. - Player
Media Selection Criteria - Re-exports the
AVPlayerframework surface for this item. Mirrors theAVPlayerframework counterpart forPlayerMediaSelectionCriteria. - Player
Rate DidChange Event - Re-exports the
AVPlayerframework surface for this item. Mirrors theAVPlayerframework counterpart forPlayerRateDidChangeEvent. - Player
Rate DidChange Observer - Re-exports the
AVPlayerframework surface for this item. Mirrors theAVPlayerframework counterpart forPlayerRateDidChangeObserver. - Player
Video Output - Re-exports the
AVPlayerframework surface for this item. Mirrors theAVPlayerframework counterpart forPlayerVideoOutput. - Player
Video Output Configuration - Re-exports the
AVPlayerframework surface for this item. Mirrors theAVPlayerframework counterpart forPlayerVideoOutputConfiguration. - Player
Video Output Sample - Re-exports the
AVPlayerframework surface for this item. Mirrors theAVPlayerframework counterpart forPlayerVideoOutputSample. - Player
Video Output TagCollection - Re-exports the
AVPlayerframework surface for this item. Mirrors theAVPlayerframework counterpart forPlayerVideoOutputTagCollection. - Player
Video Tagged Buffer - Re-exports the
AVPlayerframework surface for this item. Mirrors theAVPlayerframework counterpart forPlayerVideoTaggedBuffer. - Queue
Player - Re-exports the
AVPlayerframework surface for this item. Mirrors theAVPlayerframework counterpart forQueuePlayer. - Rect
- Re-exports the
AVPlayerframework surface for this item. Mirrors theAVPlayerframework counterpart forRect. - Rendered
Caption Image - Re-exports the
AVPlayerframework surface for this item. Mirrors theAVPlayerframework counterpart forRenderedCaptionImage. - Rendered
Legible Output Observer - Re-exports the
AVPlayerframework surface for this item. Mirrors theAVPlayerframework counterpart forRenderedLegibleOutputObserver. - Sample
Buffer Display Layer - Re-exports the
AVPlayerframework surface for this item. - Size
- Re-exports the
AVPlayerframework surface for this item. SerializableCGSizemirror. - Time
Range - Re-exports the
AVPlayerframework surface for this item. Serializable representation ofCMTimeRange. - Timed
Metadata Group - Re-exports the
AVPlayerframework surface for this item. Mirrors theAVPlayerframework counterpart forTimedMetadataGroup. - Timed
Metadata Group Handle - Re-exports the
AVPlayerframework surface for this item. OwnedAVTimedMetadataGroupwrapper. - UrlAsset
- Re-exports the
AVPlayerframework surface for this item.AVURLAssetconvenience wrapper aroundAsset. - UrlAsset
Options - Re-exports the
AVPlayerframework surface for this item. Mirrors theAVPlayerframework counterpart forUrlAssetOptions. - Variant
Preferences - Re-exports the
AVPlayerframework surface for this item. Mirrors theAVPlayerframework counterpart forVariantPreferences. - Video
Output Settings - Re-exports the
AVPlayerframework surface for this item. Builder for uncompressed videoAVAssetReaderoutput settings. - Video
Output Specification - Re-exports the
AVPlayerframework surface for this item. Mirrors theAVPlayerframework counterpart forVideoOutputSpecification.
Enums§
- AVPlayer
Error - Re-exports the
AVPlayerframework surface for this item. Top-level error type returned by fallible APIs in this crate. - Asset
Download Delegate Event - Re-exports the
AVPlayerframework surface for this item. - Asset
Download Task State - Re-exports the
AVPlayerframework surface for this item. - Asset
Downloaded Asset Eviction Priority - Re-exports the
AVPlayerframework surface for this item. - Asset
Image Generator Aperture Mode - Re-exports the
AVPlayerframework surface for this item. - Asset
Image Generator Dynamic Range Policy - Re-exports the
AVPlayerframework surface for this item. - Asset
Playback Configuration Option - Re-exports the
AVPlayerframework surface for this item. - Asset
Reader Status - Re-exports the
AVPlayerframework surface for this item.AVAssetReaderStatus. - Asset
Resource Loader Event - Re-exports the
AVPlayerframework surface for this item. - Audio
Time Pitch Algorithm - Re-exports the
AVPlayerframework surface for this item. Mirrors theAVPlayerframework counterpart forAudioTimePitchAlgorithm. - Content
Authorization Status - Re-exports the
AVPlayerframework surface for this item. Mirrors theAVPlayerframework counterpart forContentAuthorizationStatus. - Content
KeySystem - Re-exports the
AVPlayerframework surface for this item. - KeyValue
Status - Re-exports the
AVPlayerframework surface for this item. Per-key loading state returned byAVAsynchronousKeyValueLoading. - Media
Characteristic - Re-exports the
AVPlayerframework surface for this item. Mirrors theAVPlayerframework counterpart forMediaCharacteristic. - Media
Type - Re-exports the
AVPlayerframework surface for this item. Simplified media-type classification for asset tracks and reader outputs. - Metadata
Collector Event - Re-exports the
AVPlayerframework surface for this item. Mirrors theAVPlayerframework counterpart forMetadataCollectorEvent. - Metadata
Output Event - Re-exports the
AVPlayerframework surface for this item. Mirrors theAVPlayerframework counterpart forMetadataOutputEvent. - Player
Action AtItem End - Re-exports the
AVPlayerframework surface for this item. Mirrors theAVPlayerframework counterpart forPlayerActionAtItemEnd. - Player
Audiovisual Background Playback Policy - Re-exports the
AVPlayerframework surface for this item. Mirrors theAVPlayerframework counterpart forPlayerAudiovisualBackgroundPlaybackPolicy. - Player
Integrated Timeline Snapshots OutOf Sync Reason - Re-exports the
AVPlayerframework surface for this item. Mirrors theAVPlayerframework counterpart forPlayerIntegratedTimelineSnapshotsOutOfSyncReason. - Player
Interstitial Event Asset List Response Status - Re-exports the
AVPlayerframework surface for this item. Mirrors theAVPlayerframework counterpart forPlayerInterstitialEventAssetListResponseStatus. - Player
Interstitial Event Cue - Re-exports the
AVPlayerframework surface for this item. Mirrors theAVPlayerframework counterpart forPlayerInterstitialEventCue. - Player
Interstitial Event Monitor Event - Re-exports the
AVPlayerframework surface for this item. Mirrors theAVPlayerframework counterpart forPlayerInterstitialEventMonitorEvent. - Player
Interstitial Event Skippable Event State - Re-exports the
AVPlayerframework surface for this item. Mirrors theAVPlayerframework counterpart forPlayerInterstitialEventSkippableEventState. - Player
Interstitial Event Timeline Occupancy - Re-exports the
AVPlayerframework surface for this item. Mirrors theAVPlayerframework counterpart forPlayerInterstitialEventTimelineOccupancy. - Player
Item Event - Re-exports the
AVPlayerframework surface for this item. Events emitted byPlayerItemObserver. - Player
Item Legible Output Event - Re-exports the
AVPlayerframework surface for this item. Mirrors theAVPlayerframework counterpart forPlayerItemLegibleOutputEvent. - Player
Item Legible Output Text Styling Resolution - Re-exports the
AVPlayerframework surface for this item. Mirrors theAVPlayerframework counterpart forPlayerItemLegibleOutputTextStylingResolution. - Player
Item Media Data Collector Kind - Re-exports the
AVPlayerframework surface for this item. Mirrors theAVPlayerframework counterpart forPlayerItemMediaDataCollectorKind. - Player
Item Segment Type - Re-exports the
AVPlayerframework surface for this item. Mirrors theAVPlayerframework counterpart forPlayerItemSegmentType. - Player
Item Status - Re-exports the
AVPlayerframework surface for this item.AVPlayerItemStatus. - Player
Item Track Video Field Mode - Re-exports the
AVPlayerframework surface for this item. Mirrors theAVPlayerframework counterpart forPlayerItemTrackVideoFieldMode. - Player
Item Video Output Event - Re-exports the
AVPlayerframework surface for this item. Mirrors theAVPlayerframework counterpart forPlayerItemVideoOutputEvent. - Player
Looper Item Ordering - Re-exports the
AVPlayerframework surface for this item. Mirrors theAVPlayerframework counterpart forPlayerLooperItemOrdering. - Player
Looper Status - Re-exports the
AVPlayerframework surface for this item. Mirrors theAVPlayerframework counterpart forPlayerLooperStatus. - Player
Network Resource Priority - Re-exports the
AVPlayerframework surface for this item. Mirrors theAVPlayerframework counterpart forPlayerNetworkResourcePriority. - Player
Rate DidChange Reason - Re-exports the
AVPlayerframework surface for this item. Mirrors theAVPlayerframework counterpart forPlayerRateDidChangeReason. - Player
Status - Re-exports the
AVPlayerframework surface for this item.AVPlayerStatus. - Player
Time Control Status - Re-exports the
AVPlayerframework surface for this item. Mirrors theAVPlayerframework counterpart forPlayerTimeControlStatus. - Player
Video Output TagCollection Preset - Re-exports the
AVPlayerframework surface for this item. Mirrors theAVPlayerframework counterpart forPlayerVideoOutputTagCollectionPreset. - Player
Video Tagged Buffer Kind - Re-exports the
AVPlayerframework surface for this item. Mirrors theAVPlayerframework counterpart forPlayerVideoTaggedBufferKind. - Player
Waiting Reason - Re-exports the
AVPlayerframework surface for this item. Mirrors theAVPlayerframework counterpart forPlayerWaitingReason. - Queued
Sample Buffer Rendering Status - Re-exports the
AVPlayerframework surface for this item. - Rendered
Legible Output Event - Re-exports the
AVPlayerframework surface for this item. Mirrors theAVPlayerframework counterpart forRenderedLegibleOutputEvent. - Time
- Re-exports the
AVPlayerframework surface for this item. Serializable representation ofCMTime. - Video
Gravity - Re-exports the
AVPlayerframework surface for this item. Mirrors theAVPlayerframework counterpart forVideoGravity.
Functions§
- player_
eligible_ for_ hdr_ playback_ did_ change_ notification - Re-exports the
AVPlayerframework surface for this item. Calls theAVPlayerframework counterpart forplayer_eligible_for_hdr_playback_did_change_notification. - player_
integrated_ timeline_ snapshots_ out_ of_ sync_ notification - Re-exports the
AVPlayerframework surface for this item. Calls theAVPlayerframework counterpart forplayer_integrated_timeline_snapshots_out_of_sync_notification. - player_
integrated_ timeline_ snapshots_ out_ of_ sync_ reason_ current_ segment_ changed - Re-exports the
AVPlayerframework surface for this item. Calls theAVPlayerframework counterpart forplayer_integrated_timeline_snapshots_out_of_sync_reason_current_segment_changed. - player_
integrated_ timeline_ snapshots_ out_ of_ sync_ reason_ key - Re-exports the
AVPlayerframework surface for this item. Calls theAVPlayerframework counterpart forplayer_integrated_timeline_snapshots_out_of_sync_reason_key. - player_
integrated_ timeline_ snapshots_ out_ of_ sync_ reason_ loaded_ time_ ranges_ changed - Re-exports the
AVPlayerframework surface for this item. Calls theAVPlayerframework counterpart forplayer_integrated_timeline_snapshots_out_of_sync_reason_loaded_time_ranges_changed. - player_
integrated_ timeline_ snapshots_ out_ of_ sync_ reason_ segments_ changed - Re-exports the
AVPlayerframework surface for this item. Calls theAVPlayerframework counterpart forplayer_integrated_timeline_snapshots_out_of_sync_reason_segments_changed. - player_
waiting_ during_ interstitial_ event_ reason - Re-exports the
AVPlayerframework surface for this item. Calls theAVPlayerframework counterpart forplayer_waiting_during_interstitial_event_reason.
Type Aliases§
- Player
Item Video Output Settings - Re-exports the
AVPlayerframework surface for this item. Mirrors theAVPlayerframework counterpart forPlayerItemVideoOutputSettings. - Player
Video Output Settings - Re-exports the
AVPlayerframework surface for this item. Mirrors theAVPlayerframework counterpart forPlayerVideoOutputSettings.