Re-exports§
pub use autoplay::AutoplayDecision;pub use autoplay::AutoplaySettings;pub use backend::NullBackend;pub use backend::PlayerBackend;pub use backend::PlayerError;pub use events::PlayerEventEmitter;pub use events::PlayerStatusEvent;pub use events::TauriEventEmitter;pub use legacy_player::LegacyPlayer;pub use media::MediaItem;pub use media::MediaSource;pub use media::MediaType;pub use media::QueueContext;pub use media::SubtitleTrack;pub use media_player::MediaPlayer;pub use media_player::OpenRequest;pub use media_player::Phase;pub use queue::QueueManager;pub use queue::RepeatMode;pub use seek::determine_video_seek_strategy;pub use seek::VideoSeekStrategy;pub use session::MediaSessionManager;pub use session::MediaSessionType;pub use sleep_timer::SleepTimerMode;pub use sleep_timer::SleepTimerState;pub use state::EndReason;pub use state::PlayerState;pub use mpv_backend::MpvBackend;
Modules§
- autoplay
- backend
- background_
policy - What playback should do when the app stops being visible.
- events
- Player events for frontend communication via Tauri events.
- legacy_
player - A
MediaPlayerover the oldPlayerBackendtrait. - media
- media_
player - The
MediaPlayercontract: one API, interchangeable engines. - mpv_
backend - mpv_
player MediaPlayerover libmpv.- mpv_
render - mpv’s render API into a framebuffer we own (UR-080 / DR-231, IR-033).
- native_
video - Whether this process renders video natively — one answer, three consumers (UR-080 / DR-231, DR-235). Whether this process renders video natively, answered once.
- queue
- seek
- Video seek strategy decision logic.
- session
- sleep_
timer - state
- stream_
end - Telling a finished stream apart from a truncated one.
- video_
surface - The native video surface mpv renders into (UR-080 / DR-231).
Structs§
- Lockscreen
Metadata - Metadata for the lockscreen / media notification.
- Player
Controller - Central player controller that coordinates playback
- Reporter
Sink 🔒 - The production sink: hands each operation to the
PlaybackReporter.
Constants§
- RESUME_
BACKOFF_ 🔒STEP_ SECS - Seconds added per attempt before retrying a stream that failed with an error.
Traits§
- Playback
Report Sink - Where the player’s playback reports go.
Functions§
- completion_
report_ 🔒position - The position to report when a stream ends naturally.
- set_
lockscreen_ position_ offset - Set the base offset (seconds) added to positions reported to the Android lockscreen scrubber. Used by the background-audio handoff: the audio stream starts at the handoff point (StartTimeTicks), so ExoPlayer’s position is relative and must be shifted back to absolute to match the full duration. Pass 0.0 to clear on exit. No-op off Android.
- update_
lockscreen_ metadata - Push now-playing metadata to the Android lockscreen. No-op off Android, so the session poller can call it unconditionally and stay platform-agnostic.