INTERACT FORUM

More => Old Versions => JRiver Media Center 24 for Windows => Topic started by: 89ZEF on March 22, 2019, 07:23:03 am

Title: hacking the media key / volume control
Post by: 89ZEF on March 22, 2019, 07:23:03 am
This question is related to both :
Options > Audio > Volume > Volume mode
Options > General > Advances > Media key mode

I often put music at low volume while working or using VoIP and the current implementation of the volume mode / media key mode combo does not do the trick for my specific usage.

I end up having the music play at 100% (JRiver internal) when in "system volume" and I can no longer hear the VoIP content correctly. Having it set to "internal volume" needs a massive amount of clicks to change the system volume which is a hassle.

An "internal fixed volume" would address this as I don't seem to need changing the music volume too often but still need to change the system's. Something like other standalone players like VLC letting you playing/pause but the volume media keys are still tied to the system.

Could I achieve this by banning volume media keys from the built-in feature by changing the .xml resources?
Or could I somewhere prevent the volume from being controlled by media keys?
Title: Re: hacking the media key / volume control
Post by: 89ZEF on March 23, 2019, 02:51:20 pm
Workaround for Windows, using MC command line + AutoHotKey.

Target: Use media keys except volume up/down

- Media Key Mode: disabled
- Volume mode: internal
- Run the following AutoHotKey script:
Code: [Select]
#NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn  ; Enable warnings to assist with detecting common errors.
SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.

Media_Play_Pause::
run MC24.exe /Pause
return

Media_Stop::
run MC24.exe /Stop
return

Media_Prev::
run MC24.exe /Previous
return

Media_Next::
run MC24.exe /Next
return

Will post a macOS workaround asap.
Title: Re: hacking the media key / volume control
Post by: 89ZEF on March 24, 2019, 12:52:11 pm
I posted the OSX workaround in "MC24 for Mac" board.
https://yabb.jriver.com/interact/index.php/topic,120008.0.html