Howto control volume from plugin (1 Viewer)

Shukuyen

Community Plugin Dev
  • Premium Supporter
  • May 8, 2008
    557
    300
    Lake of Constance
    Home Country
    Germany Germany
    Hi all,

    I am looking for a way to change the MediaPortal Volume from within my process plugin.
    Is there some magic setVolume(int percent); method that takes into account the settings of the user?


    Thanks,
    Shukuyen.
     

    SilentException

    Retired Team Member
  • Premium Supporter
  • October 27, 2008
    2,617
    1,130
    Rijeka, Croatia
    Home Country
    Croatia Croatia
    using MediaPortal.Player;

    VolumeHandler.Instance.Minimum
    VolumeHandler.Instance.Maximum

    VolumeHandler.Instance.Next
    VolumeHandler.Instance.Previous

    That it? :)
     

    Shukuyen

    Community Plugin Dev
  • Premium Supporter
  • May 8, 2008
    557
    300
    Lake of Constance
    Home Country
    Germany Germany
    • Thread starter
    • Moderator
    • #3
    Thanks a lot, SilentExcept, that works. Not the way I thought it would (because of the VolumeTable my "set volume to xx percent" idea was wrong) but I think it will be ok :)
     

    Users who are viewing this thread


    Write your reply...

    Similar threads

    Any other suggestions for this?
    Any other suggestions for this?
    I have Flirc and the Skip 1s remote sending volume +/- events. I prefer to rely on just the Windows volume control so in...
    Replies
    4
    Views
    1K
    Ran into this problem following an otherwise sucessful upgrade from MP 1.34 x64 to MP 1.35 x64 the CEC Remote plugin which I use just to control volume and standby, will no longer put my devices (TV & AVR) to sleep when the HTPC is put in standby. Also when I wake up the HTPC MP closes or crashes (not sure which) as per the example in...
    Ran into this problem following an otherwise sucessful upgrade from MP 1.34 x64 to MP 1.35 x64 the CEC Remote plugin which I use...
    Ran into this problem following an otherwise sucessful upgrade from MP 1.34 x64 to MP 1.35 x64 the CEC Remote plugin which I use...
    Replies
    0
    Views
    572
    Did it work? And sorry, I should have mentioned that I was just running a test with zap2it at the command line. I'm not using MP.
    Did it work? And sorry, I should have mentioned that I was just running a test with zap2it at the command line. I'm not using MP.
    NOT A MEDIAPORTAL ISSUE. Using MediaPortal1, Kodi for TV viewing. Today I noticed the TV Guide in Kodi stopped updating. A Google...
    Replies
    31
    Views
    3K
    Nice finding! (y)(y)(y) Adapted to new DWHD and PVHD ;) Position is in front of category bar ;)
    Nice finding! (y)(y)(y) Adapted to new DWHD and PVHD ;) Position is in front of category bar ;)
    This thread is intended for skin authors, plus those advanced users who have learnt skin programming and have customised the skins...
    Replies
    1
    Views
    824
    MP1 supports TVE 3 MP2 supports TVE 3, TVE 3.5 (unstable), TV Mosaic - I think so.
    MP1 supports TVE 3 MP2 supports TVE 3, TVE 3.5 (unstable), TV Mosaic - I think so.
    I am a long-time user of MediaPortal to watch TV. I use the Media Portal TV Server as a backend, and Kodi (previously known as...
    Replies
    19
    Views
    3K
    Top Bottom