Modules§
Structs§
- Bundle
Info - Listener
Token - NowPlaying
- A struct for managing and interacting with the “Now Playing” media session.
- NowPlaying
Info - NowPlayingJXA
Enums§
Traits§
Functions§
- add_
observer - Adds an observer for a specific media notification.
- get_
bundle_ info - If the application is found, its name and icon are returned as a
BundleInfostruct. Otherwise,Noneis returned if the application cannot be located or an error occurs during data retrieval. - get_
info - get_
now_ playing_ application_ is_ playing - Checks whether the currently playing media application is actively playing.
- get_
now_ playing_ application_ pid - Retrieves the current “now playing” application PID.
- get_
now_ playing_ client - Retrieves the current “now playing” client ID (which is a reference).
- get_
now_ playing_ client_ bundle_ identifier - Retrieves the bundle identifier of the current “now playing” client.
- get_
now_ playing_ client_ parent_ app_ bundle_ identifier - Retrieves the bundle identifier of the parent app for the current “now playing” client.
- get_
now_ playing_ info - Retrieves the currently playing media information as a
HashMap<String, InfoTypes>. - get_
raw_ info - register_
for_ now_ playing_ notifications - Registers for “Now Playing” notifications.
- remove_
observer - Removes a previously added observer.
- send_
command - Sends a media command to the currently active media client.
- set_
elapsed_ time - Sets the elapsed time of the currently playing media.
- set_
playback_ speed - Sets the playback speed of the currently active media client.
- unregister_
for_ now_ playing_ notifications - Unregisters from “Now Playing” notifications.