Crate media_remote

Crate media_remote 

Source

Modules§

prelude

Structs§

BundleInfo
ListenerToken
NowPlaying
A struct for managing and interacting with the “Now Playing” media session.
NowPlayingInfo
NowPlayingJXA
NowPlayingPerl

Enums§

Command
InfoTypes
Notification
Number

Traits§

Controller
Subscription

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 BundleInfo struct. Otherwise, None is 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.

Type Aliases§

Id
Observer