home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
Quality Assurance
Bugreports
1.21
MP 1.21 Volume OSD for 1039 MCE remote and MCE keyboard not working
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Owlsroost" data-source="post: 1256584" data-attributes="member: 83973"><p>For the changes I've made, correct (except that it actually handles Vista/7/8, not just Win 7) - the Windows 10 'sound mixer' is handled by separate code in MP.</p><p></p><p></p><p></p><p>I had a quick look at the CEC plugin code a few days ago - yes, that appears to be what it does, via MP's 'VolumeHandler' code - see below (from <a href="https://github.com/tuomas-k/CECRemote/blob/master/CecRemote/Source/CecRemote.cs" target="_blank">tuomas-k/CECRemote</a> ):</p><p></p><p>[code] void GUIWindowManager_OnNewAction(MediaPortal.GUI.Library.Action action)</p><p> {</p><p> switch (action.wID)</p><p> {</p><p> case MediaPortal.GUI.Library.Action.ActionType.ACTION_VOLUME_UP:</p><p> _client.VolumeUp();</p><p> MediaPortal.Player.VolumeHandler.Instance.Volume = MediaPortal.Player.VolumeHandler.Instance.Maximum;</p><p> break;</p><p> case MediaPortal.GUI.Library.Action.ActionType.ACTION_VOLUME_DOWN:</p><p> _client.VolumeDown();</p><p> MediaPortal.Player.VolumeHandler.Instance.Volume = MediaPortal.Player.VolumeHandler.Instance.Maximum;</p><p> break;</p><p> case MediaPortal.GUI.Library.Action.ActionType.ACTION_VOLUME_MUTE:</p><p> _client.VolumeMute();</p><p> MediaPortal.Player.VolumeHandler.Instance.IsMuted = false;</p><p> break;</p><p> default:</p><p> break;</p><p> }</p><p> }</p><p>[/code]</p></blockquote><p></p>
[QUOTE="Owlsroost, post: 1256584, member: 83973"] For the changes I've made, correct (except that it actually handles Vista/7/8, not just Win 7) - the Windows 10 'sound mixer' is handled by separate code in MP. I had a quick look at the CEC plugin code a few days ago - yes, that appears to be what it does, via MP's 'VolumeHandler' code - see below (from [URL="https://github.com/tuomas-k/CECRemote/blob/master/CecRemote/Source/CecRemote.cs"]tuomas-k/CECRemote[/URL] ): [code] void GUIWindowManager_OnNewAction(MediaPortal.GUI.Library.Action action) { switch (action.wID) { case MediaPortal.GUI.Library.Action.ActionType.ACTION_VOLUME_UP: _client.VolumeUp(); MediaPortal.Player.VolumeHandler.Instance.Volume = MediaPortal.Player.VolumeHandler.Instance.Maximum; break; case MediaPortal.GUI.Library.Action.ActionType.ACTION_VOLUME_DOWN: _client.VolumeDown(); MediaPortal.Player.VolumeHandler.Instance.Volume = MediaPortal.Player.VolumeHandler.Instance.Maximum; break; case MediaPortal.GUI.Library.Action.ActionType.ACTION_VOLUME_MUTE: _client.VolumeMute(); MediaPortal.Player.VolumeHandler.Instance.IsMuted = false; break; default: break; } } [/code] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Quality Assurance
Bugreports
1.21
MP 1.21 Volume OSD for 1039 MCE remote and MCE keyboard not working
Contact us
RSS
Top
Bottom