View Single Post
Posts: 440 | Thanked: 2,256 times | Joined on Jul 2014
#8
Originally Posted by velox View Post
Pausing media is actually a bit of a hack right now: I just play a very short, silent .mp3 file right out of QML, which automatically pauses a lot of native players. I tried using dbus from QML when I wanted to fade out media volume before, but didn't get anywhere. Hints how to do that stuff at all (and helpful dbus methods) would be greatly appreciated…
Using MPRIS to pause the players might be a better solution for native players. Which is what the lockscreen media controls use, and so is a common API for you to hook into

http://specifications.freedesktop.or...est/index.html

https://github.com/nemomobile/qtmpris
__________________
SirenSong v0.5
Like my work? buy me a beer
 

The Following 2 Users Say Thank You to r0kk3rz For This Useful Post: