[Finished] [MP2-789] mprovement of Remote support for plugins (MP2) (1 Viewer)

azzuro

Test Group
  • Team MediaPortal
  • May 10, 2007
    9,606
    5,230
    France - IDF
    France France
    Country flag
    • Thread starter
    • Moderator
    • #1
    Started on: 2013-10-27
    last update: -

    Summary:
    Controling Plugin with own shortcuts, Blue/Green/Red/Yellow for Remote are not used anymore !

    MP1 related thread : https://forum.team-mediaportal.com/threads/improvement-of-remote-support-for-plugins.122504/

    Area:
    Aera Remote / Shortcut

    Description:

    This proposal is a new Feature / Rework for add ability to have plugin mapping setting inside "Mapping" window.
    All plugins : controls( Action) & Window : can be mapped to the remote and no need anymore to use Teletext button, already used for special shortcut ( MyVidéo / MyMusic / ... ) and can be already mapped to many plugins.
    As Atmolight / Auto3D / ....

    Ex : Plugin must set public class for Action or GUI Screen, and are available in Remote mapping.
    - [PluginName].[Actions]
    - [PluginName].[GuiWindow]

    Also this can easily set defaut software with button.



    one Jira entry already exist about MovingPicture replacement :
    https://issues.team-mediaportal.com/browse/MP1-1925?jql="External issue ID" ~ "3384"
     

    Lehmden

    Retired Team Member
  • Premium Supporter
  • December 17, 2010
    12,111
    3,694
    Lehmden
    Germany Germany
    Country flag
    Hi.
    All mappings for MCE remote in MP2 are done inside a xml file. You can find it here: "c:\Program Files (x86)\Team MediaPortal\MP2-Client\Plugins\MceRemoteReceiver\DefaultRemoteMap.xml" There you can change the mapping to whatever you want. A GUI page to configure this is not planed afaik. We will keep the settings as easy and clean as possible...
     

    azzuro

    Test Group
  • Team MediaPortal
  • May 10, 2007
    9,606
    5,230
    France - IDF
    France France
    Country flag
    • Thread starter
    • Moderator
    • #4
    You can find it here: "c:\Program Files (x86)\Team MediaPortal\MP2-Client\Plugins\MceRemoteReceiver\DefaultRemoteMap.xml"
    my ask is not about GUI mapping. but add ability to have Plugins with dedicated mapping to remote. on MP1 we must set Teletext color for have Action/Gui Window of plugins or create an special keyboard shortcut, and map this shortcut to remote ...

    What i mean :
    Example of Atmolight plugins :
    These plugin have 3 remote Action :
    • Start Light
    • Switch profil
    • Gui Context Menu
    you can choose the 4 colors of the Teletexte remote for each Actions and this choice can be in conflict with lot of plugins.

    and what i want is : the ability of plugins to allow internal class to be used by remote mapping.

    Plugins.Action class
    public Atmolight.StartLight
    public Atmolight.Profil
    public Atmolight.GuiContextMenu

    Public.Window class
    public Atmolight.GuiHomeScreen (for now,

    no need anymore to have Colored button inside Plugins.

    A GUI page to configure this is not planed afaik.
    IRSS is already compatible with MP2, we need to have only the "Plugin class" read from MP2.
     

    morpheus_xx

    Lead Dev MP2
  • Team MediaPortal
  • March 24, 2007
    11,487
    7,018
    Germany Germany
    Country flag
    Shortcuts can be defined by any plugin and can reference both WorkflowState and WorkflowActions.

    An example you find here: https://github.com/MediaPortal/Medi...ia/Skin/default/shortcuts/Media-shortcuts.xml, i.e. the "Red" key is mapped to switch to fullscreen
    XML:
    <!-- Name="*->FullscreenContent" -->
    <Shortcut Key="P:F,S:Red" WorkflowAction="9C3E6701-6856-49ec-A4CD-0CEB15F385F6" />
    You could extend the inbuilt shortcuts or even add an own plugin to register new shortcuts. MP2 is much more flexible than MP1.
     

    azzuro

    Test Group
  • Team MediaPortal
  • May 10, 2007
    9,606
    5,230
    France - IDF
    France France
    Country flag
    • Thread starter
    • Moderator
    • #6
    i'm not to understand how it work...

    my proposal is maybe young, but as no plugin are available for MP2 (from external dev)

    if i understand, the plugin dev, make itself the condition & the Shortcut in his plugin ?

    i'm sorry Morpheus, is verry hard for me to understand :(, maybe more easy when i look MP2 code ...
     

    morpheus_xx

    Lead Dev MP2
  • Team MediaPortal
  • March 24, 2007
    11,487
    7,018
    Germany Germany
    Country flag
    but as no plugin are available for MP2 (from external dev)
    All main features are plugins ;) And you can find OnlineVideos, WebRadio, Cinema plugins and others (like CEC remote). So there is actually a code base for using as template.

    The plugin dev can define actions (WorkflowActions) and "screens" (WorkflowStates) and add shortcuts to them via shortcuts.xml file. Additionally a skin dev can also add KeyBindings in single screens (i.e. I use "Enter" to open MiniGuide in TvFullscreen).
     

    HTPCSourcer

    MP2 Product Manager
  • Team MediaPortal
  • May 16, 2008
    11,431
    2,334
    Germany Germany
    Country flag
    The Input Device Manager has been completely reworked and is now capable of consuming HID input. In other words, every HID device will now work in MP2. :)

    Different input devices can now be individually configured to map MP2 commands and screens function (e.g. Movies or TV) to a key (combination) on the device.

    This will be rolled out with MP 2.2.1
     

    Users Who Are Viewing This Thread (Users: 0, Guests: 1)

    OP Similar threads Forum Replies Date
    N [Finished] [MP2-789] MCE remote control Recorded TV and My Pictures buttons do not work MediaPortal 2 17
    H [Finished] [MP2-789] Input device manager MediaPortal 2 291
    Scheibes Was passiert bei MP2? Allgemeines Support- und Diskussionsforum 42
    S Programmierte Aufnahme in MP2 - kein Aufwachen des PC Allgemeines Support- und Diskussionsforum 5
    morpheus_xx [WiP] "What's New" plugin for MP2 upgrades MediaPortal 2 20
    da3dsoul [Request] An MVP Plugin example for custom settings in MP2 Plugin Development 2
    morpheus_xx [Evaluate] Checking MP2 code portability to .Net Core MediaPortal 2 11
    da3dsoul Does MP2 not have any active devs? General 8
    da3dsoul MP2 Plugin - Getting Started (Directory Tree and Player) Plugin Development 27
    R [solved] Kein Player registriert Allgemeines Support- und Diskussionsforum 1
    -Merkur- MP2 Client startet nicht, "libXBMC_addon.dll" fehlt Allgemeines Support- und Diskussionsforum 1
    mp2-ulrich [solved] MP 2.2.3 spielt nur manche Sender Allgemeines Support- und Diskussionsforum 2
    H MP2 database won't keep in synch with recordings General 8
    H [solved] MP2 Wiedergabe von Aufnahmen und Live TV geht nicht Allgemeines Support- und Diskussionsforum 6
    ge2301 [WiP] MP2Web - A platform independent web client for MP2 MediaPortal 2 68
    F Problems with new install of MP2 Newcomers Forum 3
    catalpa Bug MP2-837 Allgemeines Support- und Diskussionsforum 2
    P MP2: US user, OTA - can NOT get SchedulesDirect plugin to work on MP1 or MP2 --> how do I get OTA schedule? General 5
    bigboss97 Does anyone has a SoundGraph imon remote file for MP2 to share? General 0
    ge2301 Android based client for MP2 MediaPortal 2 3
    R MP2 GUI Issues General 7
    P [solved] MP2 new install, 2 x hdhomerun tuners, client on same PC unable to view TV & recordings Newcomers Forum 8
    Lichloathe MP2 importing keyart instead of poster General 0
    Lichloathe Trakt for MP2 question General 7
    C Streaming/transcoding MP2 vs MP1? General 4
    Similar threads

























    Top Bottom