docs.rs failed to build tauri-plugin-media-session-0.1.0
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
tauri-plugin-media-session
A Tauri 2 plugin for Android media session integration. Displays a MediaStyle notification with lockscreen controls, album artwork, and transport buttons (play/pause/next/previous).
Features
- Android MediaStyle notification with play/pause/skip controls
- Lockscreen and notification shade media controls
- Album artwork support (downloaded async from URL)
- Runtime POST_NOTIFICATIONS permission request (Android 13+)
- Event-based media action callbacks to JavaScript
Installation
Cargo.toml
[]
= "0.1"
Rust setup
Tauri capability
Add to your capability JSON:
JavaScript API
Update media state
await window.__TAURI__..;
Listen for media actions
window.__TAURI__..;
Clear session
await window.__TAURI__..;
License
MIT OR Apache-2.0