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