NextPVR Forums

Full Version: Hotkey for MUTE function
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Seems like it would be a good idea to have a hotkey for muting LiveTV audio.
there is. Whoever did the wiki keyboard reference page left it out.

have a look in your keymappings.xml file, it's in there somewhere
Nothing about MUTE in that file - see below:

<Mapping>
<Subsystem name="General">
<Key code="{CTRL}P" command="Play"/>
<Key code="Escape" command="Escape"/>
<Key code="PageUp" command="PageUp"/>
<Key code="PageDown" command="PageDown"/>
<Key code="Delete" command="Delete"/>

<Key code="{CTRL}S" command="Stop"/>
<Key code="{CTRL}Q" command="Pause"/>
<Key code="{CTRL}P" command="Play"/>
<Key code="{CTRL}K" command="Record"/>
<Key code="{CTRL}O" command="PausePlay"/>

<Key code="{CTRL}Right" command="SkipForward"/>
<Key code="{CTRL}Left" command="SkipBack"/>
<Key code="{CTRL}R" command="SkipRW"/>
<Key code="{CTRL}F" command="SkipFF"/>

<Key code="F7" command="ToggleAspectRatio"/>
<Key code="{CTRL}B" command="ShowOSD"/>

<Key code="{ALT}B" command="Blue"/>
<Key code="{ALT}G" command="Green"/>
<Key code="{ALT}Y" command="Yellow"/>
<Key code="{ALT}R" command="Red"/>

<Key code="Home" command="Home/Inset"/>
</Subsystem>
<Subsystem name="MusicPlayback">
<Key code="{CTRL}S" command="Stop"/>
<Key code="{CTRL}Q" command="Pause"/>
<Key code="{CTRL}P" command="Play"/>
<Key code="{CTRL}Right" command="NextTrack"/>
<Key code="{CTRL}Left" command="PreviousTrack"/>
</Subsystem>
<Subsystem name="LiveTV">
<Key code="Add" command="Channel+"/>
<Key code="Subtract" command="Channel-"/>
<Key code="Next" command="Channel-"/>
<Key code="PageUp" command="Channel+"/>
<Key code="Return" command="ChangeChannel"/>
<Key code="{CTRL}X" command="SelectSubtitles"/>
<Key code="{CTRL}W" command="PreviousChannel"/>
<Key code="{CTRL}T" command="ToggleTeletext"/>
</Subsystem>
<Subsystem name="VideoPlayback">
<Key code="{CTRL}X" command="SelectSubtitles"/>
</Subsystem>
<Subsystem name="Recordings">
<Key code="{CTRL}S" command="ToggleSortMode"/>
</Subsystem>
</Mapping>
Now that I look at it, there are no volume controls in the KeyMappings.xml file.
yep, you're right. I thought it was ctrl-m, but I just checked and it doesn't work. Why do I have ctrl-m mapped to the mute button on my remote if it doesn't do anything? it must be left over from GB-PVR. I actually control volume & mute with the remote for my audio system, so I never noticed NPVR didn't have mute.

anyhow, NPVR doesn't do volume. all volume control is completely external, and up to you to implement. volume control was just an extra support headache on GB-PVR, since everyone wanted something different, so I imagine that's why sub decided to just leave it out of NPVR.

there is a volumeOSD plugin, but it just reflects the windows volume state.
If you have a facility to map hotkeys, windows will respond to these app commands:

MUTE={app(0x80000)}
VOLUP={app(0xa0000)}
VOLDOWN={app(0x90000)}

You can also remap remote buttons to the app commands.
Thanks for the info, mulletback. I will have to investigate what you mean by your comment as I am currently unfamiliar with how I might go about doing what you describe. But I will start googling and see where it leads. Perhaps I can use an old utility I have called "Volumouse" - perhaps that would serve my purposes.
There are lots of little utilities to map hotkeys, many are freeware, just google around. Looks like Volumouse might do the trick anyway.