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

    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
    604
    Well, there is nothing wrong in the log. I have personaly tested the bitstreaming after DVD resume, and I can confirm that the LAV audiodecoder shows status 'bistreaming' on the output. What is your LAV status?
    Well, there is nothing wrong in the log. I have personaly tested the bitstreaming after DVD resume, and I can confirm that the LAV...
    My apologies for posting two separate issues in one posting, however, the logs I have cover both. 1. Resume playback of...
    Replies
    13
    Views
    1K
    • Sticky
    MP1 MP2 [News] MediaPortal 2 - 2.5 Release DE
    Will be version 2.5.1 ready quite soon? I read somewhere it will be a bugfix release, no new features are probably not in focus.
    Will be version 2.5.1 ready quite soon? I read somewhere it will be a bugfix release, no new features are probably not in focus.
    We are proud to present MediaPortal 2.5 MediaPortal 2.5 is a full-blown media center software that addresses most common user...
    Replies
    70
    Views
    6K
    MP1 MP2 MP2 - V2.5 Trailer plugin DE
    Maybe the wording “plugin” is misleading, because almost every feature in MP2 is basically a plugin. This allows to even exchange core elements easily. Short: Of course it can be also a feature as part of the installer, means integrated for the user.
    Maybe the wording “plugin” is misleading, because almost every feature in MP2 is basically a plugin. This allows to even exchange...
    The question, if MP2 can support trailers came up several times (e.g. here) and was so far always neglected mainly because of the...
    Replies
    14
    Views
    2K
    • Sticky
    Your log clearly reports: [2024-03-03 18:26:58,258] [Log ] [MPMain ] [DEBUG] - Main: Wait for TV service requested [2024-03-03 18:26:58,262] [Log ] [MPMain ] [DEBUG] - Main: TV service found. Checking status... [2024-03-03 18:26:58,263] [Log ] [MPMain ] [INFO ] - Main: TV service is in status Running - proceeding...
    Your log clearly reports: [2024-03-03 18:26:58,258] [Log ] [MPMain ] [DEBUG] - Main: Wait for TV service requested...
    MediaPortal 1.33 Release Written by Team-MediaPortal. We have just released MediaPortal 1.33 - Springtime / 20th Anniversary...
    Replies
    7
    Views
    1K
    Top Bottom