Music controls
Posted
#1
(In Topic #888)
Guru

<IMG src="https://www.cogier.com/gambas/MusicPlayer.png">
</IMG> I would like to access this from within Gambas.
Has anybody got any idea how to do this.
Linux Mint 20.3 Cinnamon Desktop
Posted
Regular

The horrible method would involve somehow finding the application icon on the screen and somehow activating it with generated mouse actions (and I dont think that is easy either).
b
Posted
Guru

MPRIS D-Bus Interface Specification - v2.2
Full Index
Posted
Guru

Posted
Regular

Just a thought!
Posted
Guru

I've just seen mps-youtube (and others) on the command line which I think could be run from EXEC[].
Just a thought!
Thanks Bill, but I have already written the player, and it uses youtube-dl to download the music I like. What I want to do is connect it to the built-in music controls that most distros have. As you can see above, Chrome allows Mint to control the playing of the track/video.
Posted
Guru

<HIGHLIGHT highlight="shell">
xdotool key XF86AudioRaiseVolume
xdotool key XF86AudioLowerVolume
xdotool key XF86AudioMute</HIGHLIGHT>
Posted
Guru

And to pause the music: -
Code (gambas)
- MediaPlayer1.Pause()
I was after using the controls on the desktop to control my program (see picture in first post).
1 guest and 0 members have just viewed this.


