1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
//! Tauri plugin for audio player control and media session management.
//!
//! This plugin provides platform-specific audio playback control for `MoosicBox` applications,
//! supporting both desktop and mobile platforms with native media controls.
//!
//! # Features
//!
//! * Control playback state (play, pause, seek)
//! * Manage playlists and track navigation
//! * Handle platform media control events
//! * Cross-platform support (desktop and mobile)
//!
//! # Usage
//!
//! Initialize the plugin in your Tauri application:
//!
//! ```rust,ignore
//! use tauri_plugin_player::PlayerExt;
//!
//! tauri::Builder::default()
//! .plugin(tauri_plugin_player::init())
//! .setup(|app| {
//! // Access player through the extension trait
//! let player = app.player();
//! Ok(())
//! })
//! .run(tauri::generate_context!())
//! .expect("error while running tauri application");
//! ```
//!
//! # Platform Support
//!
//! The plugin adapts to the target platform:
//!
//! * **Desktop**: Provides a lightweight player interface
//! * **Mobile** (iOS/Android): Integrates with native media session APIs
//!
//! # Main Types
//!
//! * [`PlayerExt`] - Extension trait for accessing player functionality
//! * [`init()`] - Plugin initialization function
//! * [`Track`] - Music track with metadata
//! * [`Playlist`] - Collection of tracks
//! * [`UpdateState`] - Request for updating player state
//! * [`Error`] - Error types for plugin operations
use ;
pub use *;
pub use ;
use Player;
use Player;
/// Extensions to [`tauri::App`], [`tauri::AppHandle`] and [`tauri::Window`] to access the player APIs.
/// Initializes the plugin.