Add Karoo Effects for media player control
Hi Hammerhead team,
Now that Karoo supports media player control, it would be nice if the capabilities to control media playback would be made available in Karoo Extensions.
Example effects:
karooSystem.dispatch(MediaControl.Play)
karooSystem.dispatch(MediaControl.Pause)
karooSystem.dispatch(MediaControl.Next)
karooSystem.dispatch(MediaControl.Previous)
karooSystem.dispatch(MediaControl.VolumeUp)
karooSystem.dispatch(MediaControl.VolumeDown)
Would also be great to have an event containing the media playback status with the media title and artist, volume and playback state.
Thank you.
-
I was wondering if the managment of available actions vs available buttons is something that could be handled by the Karoo OS. Recently, I had a use case where I wanted to implement an action in my extension that the user can trigger by pressing a bonus button (or a button combo of the karoo's own buttons), but there currently is no way to do this that I am aware of. Even if there was, there would be no way to bind it to buttons on extension devices (e. g. KRemote).
I think it would be ideal if the Karoo SDK was extended with a concept for "actions" and one for "buttons" that extensions can declare in their extension manifests similar to data types. The Karoo would define a base set of actions (e. g. BACK, TOGGLE_CONTROL_CENTER, TOGGLE_DRAWER, MEDIA_PLAY, MEDIA_PAUSE, ...) and buttons (e. g. TOP_LEFT, TOP_RIGHT, ...) that extensions can contribute to. In the karoo settings, there would be a central menu where the user can bind actions to buttons.
This would be a bigger change than any of those done after the inception of the new sdk; but I think it would be a good addition and also generally improve the customizability of the Karoo for all users by allowing to rebind the standard karoo actions, even if no extensions are used.
Please sign in to leave a comment.
Comments
2 comments