TimBurris / SiriusXMPlayer

MIT License
5 stars 2 forks source link

Media Keys Not Working #2

Open dankrop opened 2 years ago

dankrop commented 2 years ago

This looks like a very cool project! Thanks for working on this. I can't seem to get my media keys to work with it; I can see that they are working with Spotify and PocketCasts so I don't think there is a hardware or OS issue. Can you help me debug it?

TimBurris commented 2 years ago

@dankrop on your keyboard, do you have dedicated play vs pause buttons, or is yours a single play/pause toggle button? the app currently supports the single play/pause toggle button, so if your keyboard is sending individual keycodes for play vs pause it won't work. However, I can add support for that pretty simply.

If you do have just the one play/pause toggle button could you post your app log file for review? you'll find the log files: %programdata%\SiriusXMPlayer

dankrop commented 2 years ago

I have a single play/pause button. I'm trying to locate the log files, but I don't see that folder in C:\ProgramData or in my user AppData folder. Not sure where the file is.

dankrop commented 2 years ago

Not sure what happened, but after I rebooted it started working. Closing this one.

dankrop commented 1 year ago

This reappeared for me. Not sure what conditions cause it, but I did find the log and it says,

2022-11-23 08:56:01.100 -05:00 [INF] exception handling is setup
2022-11-23 08:56:01.108 -05:00 [DBG] Hosting starting
2022-11-23 08:56:01.109 -05:00 [INF] Application started. Press Ctrl+C to shut down.
2022-11-23 08:56:01.109 -05:00 [INF] Hosting environment: Production
2022-11-23 08:56:01.110 -05:00 [INF] Content root path: C:\Program Files\SiriusXMPlayer
2022-11-23 08:56:01.110 -05:00 [DBG] Hosting started
2022-11-23 08:56:01.110 -05:00 [INF] start form
2022-11-23 08:56:01.141 -05:00 [INF] ViewModel Ready, site is https://player.siriusxm.com/favorites/channels
2022-11-23 08:56:02.113 -05:00 [INF] Registering the media key hotkeys
2022-11-23 08:59:12.770 -05:00 [INF] Completed cleaning of cache 'C:\Program Files\SiriusXMPlayer\SiriusXMPlayer.exe.WebView2\EBWebView\Default\Cache\Cache_Data'
2022-11-23 08:59:12.941 -05:00 [INF] Unregistering the media key hotkeys
2022-11-23 08:59:18.060 -05:00 [INF] Starting app...