Using SMTC

Started by ruben1_PvP,

ruben1_PvP

Is there any way to use Windows 10's SMTC in Xmplay? I don't see the option and I couldn't find any plugin that could do it, but maybe I'm just blind.

Ian @ un4seen

XMPlay doesn't currently include support for that stuff, and I'm not aware of a plugin that adds it.

In case it helps, the latest build does add taskbar playback control buttons:

   www.un4seen.com/stuff/xmplay.exe

Media keys can also be used to control XMPlay playback, but only when it's in focus by default. You can enable them when out of focus too by ticking the "Global" box for them in the Shortcuts options page.

ruben1_PvP

It looks like I can replicate SMTC changing those control buttons to the Media Control buttons of my keyboard and changing them to global as you said. Even though it doesn't appear anywhere I'm doing it, so I'm controlling it blindly, but it's better than nothing. And in theory there could be conflicts if I have apps that do support SMTC and xmplay opened at the same time (because they will both respond to my inputs), but I will just be cautious with that. Thank you for the help.

saga

I started working on a plugin for minimal SMTC integration in particular to get media keys working on the Windows lock screen. It was never finished though. Just in case it would be useful for anyone, I will attach the sources of what I came up with back then. Completely non-functional at this point in time, though.

ungive

Quote from: sagaI started working on a plugin for minimal SMTC integration in particular to get media keys working on the Windows lock screen. It was never finished though. Just in case it would be useful for anyone, I will attach the sources of what I came up with back then. Completely non-functional at this point in time, though.

Could you attach an open-source license to this and possibly upload it to GitHub? That way people can build up on it. Thanks!

saga

As indicated in the source code, it's all taken from Mozilla Firefox, so if you absolutely need a license attached to it, it would be Mozilla's MPL. People that want to build upon this code can put it on GitHub or whereever they want. They don't need me to do that in order to use the code.