Expand description
Native-timed video/audio playback, independent of camera and QR packages.
Re-exports§
pub use ferroui_media as media;
Modules§
- frames
- Shared producer frames. Native storage is immutable while leased; GPU reads retain leases through actual completion, independently of UI/job lifetimes.
Structs§
- Media
Error - Media
Event - UI-thread event with reentrant delivery and deterministic subscription Drop.
- Media
Playback Session - Media
Player - Caller-owned playback can feed multiple views/texture consumers. Cloning a player never opens another decoder. Futures hold weak player ownership.
- Media
Player Options - Media
Subscription - Dropping it removes the handler.
- Media
Track - Prepared
Media Source - Temporary
Media File - Owns the materialized file until the native player releases its source.
- Weak
Media Player
Enums§
- Media
Error Kind - Media
Playback State - Media
Player Event - Media
Source - Media
Track Kind - Native
Media Location - Playback
Intent
Constants§
- MAX_
NATIVE_ RESOURCE_ BYTES - Encoded resources above this bound should use a file or network source.
Traits§
- Media
Player Provider - Native
Media Session - Narrow platform boundary.
pollreports native facts, not requested intent. Implementations must release native resources on Drop and keep returned frame allocations immutable until the last lease/GPU completion releases them.