pub struct ApplicationData {Show 25 fields
pub airplay_enabled: Option<bool>,
pub converting: Option<bool>,
pub current_airplay_devices: Vec<AirplayDevice>,
pub current_encoder: Encoder,
pub current_playlist: Option<Playlist>,
pub current_stream_title: Option<String>,
pub current_stream_url: Option<String>,
pub current_visual: Visual,
pub eq_enabled: bool,
pub fixed_indexing: bool,
pub frontmost: bool,
pub full_screen: bool,
pub name: Option<String>,
pub mute: bool,
pub player_position: Option<f64>,
pub player_state: Option<PlayerState>,
pub playlists: Option<Vec<Playlist>>,
pub selection: Option<Vec<Track>>,
pub shuffle_enabled: bool,
pub shuffle_mode: ShuffleMode,
pub song_repeat: SongRepeat,
pub sound_volume: i8,
pub version: Option<String>,
pub visuals: Vec<Visual>,
pub visuals_enabled: bool,
}Expand description
Contains data related to the Apple Music player, as well as a list of user’s Playlists.
Fields§
§airplay_enabled: Option<bool>Is AirPlay currently enabled?
converting: Option<bool>Is a track currently being converted?
current_airplay_devices: Vec<AirplayDevice>The currently selected AirPlay device(s)
current_encoder: EncoderThe currently selected encoder (MP3, AIFF, WAV, etc.)
current_playlist: Option<Playlist>The playlist containing the currently targeted track
current_stream_title: Option<String>The name of the current track in the playing stream (provided by streaming server)
current_stream_url: Option<String>The URL of the playing stream or streaming web site (provided by streaming server)
current_visual: VisualThe currently selected visual plug-in
eq_enabled: boolIs the equalizer enabled?
fixed_indexing: boolTrue if all AppleScript track indices should be independent of the play order of the owning playlist.
frontmost: boolIs this the active application?
full_screen: boolIs the application using the entire screen?
name: Option<String>The name of the application
mute: boolHas the sound output been muted?
player_position: Option<f64>: the player’s position within the currently playing track in seconds.
player_state: Option<PlayerState>Is the player stopped, paused, or playing?
playlists: Option<Vec<Playlist>>List of all user playlists
selection: Option<Vec<Track>>Track selected on the app by the user
shuffle_enabled: boolAre songs played in random order?
shuffle_mode: ShuffleModeThe playback shuffle mode
song_repeat: SongRepeatThe playback repeat mode
sound_volume: i8The sound output volume (0 = minimum, 100 = maximum)
version: Option<String>The version of the application
visuals: Vec<Visual>List of visuals
visuals_enabled: boolAre visuals currently being displayed?