Auto3D plugin for MediaPortal 1.2 - 1.12 (GUI & TV/Beamer) | Page 86

Discussion in 'MediaPortal 1 Plugins' started by Marcus Venturi, February 18, 2013.

  1. nicsergio
    • Premium Supporter

    nicsergio MP Donator

    Joined:
    April 27, 2010
    Messages:
    161
    Likes Received:
    63
    Gender:
    Male
    Ratings:
    +113 / 0
    Home Country:
    Italy Italy
    Show System Specs
    • Thank You! Thank You! x 2
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. Marcus Venturi
    • Super User

    Marcus Venturi Super User

    Joined:
    March 23, 2012
    Messages:
    606
    Likes Received:
    507
    Gender:
    Male
    Ratings:
    +735 / 1
    Home Country:
    Germany Germany
    Show System Specs
    If I register the usage-page WindowsMediaCenterRemoteControl, the RemotePlugins are dead. When I register something else .e.g. Telephony, RemotePlugins still work.
    Not 100% sure, but at first glance it looks like it's limited to page per window registration.
     
    • Like Like x 1
    • Thank You! Thank You! x 1
  4. Stéphane Lenclud
    • Team MediaPortal

    Stéphane Lenclud Development Group

    Joined:
    April 29, 2013
    Messages:
    2,562
    Likes Received:
    657
    Gender:
    Male
    Ratings:
    +1,270 / 8
    Home Country:
    Germany Germany
    Show System Specs
    That's consistent with what I was seeing. For instance the Guide which is from the ConsumerControl page was still working in MP with Auto3D plug-in activated.
     
    • Like Like x 1
  5. Marcus Venturi
    • Super User

    Marcus Venturi Super User

    Joined:
    March 23, 2012
    Messages:
    606
    Likes Received:
    507
    Gender:
    Male
    Ratings:
    +735 / 1
    Home Country:
    Germany Germany
    Show System Specs
    ...because Auto3D does only register the WindowsMediaCenterRemoteControl page. A simple solution could be to make SharpLibHid to an application wide singleton, where interested clients could attach to input events...
     
    • Like Like x 1
  6. Stéphane Lenclud
    • Team MediaPortal

    Stéphane Lenclud Development Group

    Joined:
    April 29, 2013
    Messages:
    2,562
    Likes Received:
    657
    Gender:
    Male
    Ratings:
    +1,270 / 8
    Home Country:
    Germany Germany
    Show System Specs
    That was crashing in Win32 code :)

    I fixed and published SharpLibHid v1.3.0 so that the SharpLib.Hid.Handler now has another constructor you can use without doing any registration.
    I modified the HIDDemo to test that feature so the whole thing should be working for you too.

    upload_2015-12-28_11-53-39.png
     
    Last edited: December 28, 2015
    • Like Like x 2
  7. Stéphane Lenclud
    • Team MediaPortal

    Stéphane Lenclud Development Group

    Joined:
    April 29, 2013
    Messages:
    2,562
    Likes Received:
    657
    Gender:
    Male
    Ratings:
    +1,270 / 8
    Home Country:
    Germany Germany
    Show System Specs
    It's up to each application to decide that. Singleton are usually a bad idea though but that's basically the workaround I suggested earlier quoted below.

    What we really need though in MP is something like this:

    MP should take care of user input mapping into actions. Plug-ins only need to be able to register and react on actions.
    So you would have a workflow like that:
    • Auto3D register 'Show 3D menu' action.
    • User needs to map that action through any of the Input Handler he is using.
    • User hit the button mapped to 'Show 3D menu' action.
    • MP does the mapping and issue the corresponding action.
    • Auto3D needs to implement an action handler to trigger the menu.
     
    • Like Like x 2
  8. wouter1971
    • Premium Supporter

    wouter1971 MP Donator

    Joined:
    November 19, 2008
    Messages:
    911
    Likes Received:
    106
    Gender:
    Male
    Occupation:
    Security Officer
    Location:
    Purmerend, Holland
    Ratings:
    +143 / 6
    Home Country:
    Netherlands Netherlands
    Show System Specs
    Hi Marcus, any update in sight? I'm missing a working Auto3D :(
     
    • Like Like x 1
  9. Marcus Venturi
    • Super User

    Marcus Venturi Super User

    Joined:
    March 23, 2012
    Messages:
    606
    Likes Received:
    507
    Gender:
    Male
    Ratings:
    +735 / 1
    Home Country:
    Germany Germany
    Show System Specs
    @wouter1971 :
    I'm working on it, but I had a lot of problems with other things. Believe me, I do my best.

    @Stéphane Lenclud : On my HTPC MediaPortal hangs on startup at "Initializing Input Devices...". The MediaPortal log is flooded with the following entry:

    [2016-01-03 19:30:54,122] [Log ] [MPMain ] [ERROR] - Exception: System.Exception: HidDevice: GetDeviceInfo failed: 6
    at SharpLib.Hid.Device..ctor(IntPtr hRawInputDevice)
    at SharpLib.Hid.Event..ctor(Message aMessage, HidEventRepeatDelegate aRepeatDelegate, Boolean aRepeat, Int32 aRepeatDelayInMs, Int32 aRepeatSpeedInMs)
    at SharpLib.Hid.Handler.ProcessInput(Message& aMessage)
    at MediaPortal.InputDevices.HidListener.WndProc(Message& msg, Action& action, Char& key, Keys& keyCode)
    at MediaPortal.InputDevices.InputDevices.WndProc(Message& msg, Action& action, Char& key, Keys& keyCode)
    at MediaPortalApp.WndProc(Message& msg) Message: HidDevice: GetDeviceInfo failed: 6 Site : Void .ctor(IntPtr) Source : SharpLibHid Stack Trace: at SharpLib.Hid.Device..ctor(IntPtr hRawInputDevice)
    at SharpLib.Hid.Event..ctor(Message aMessage, HidEventRepeatDelegate aRepeatDelegate, Boolean aRepeat, Int32 aRepeatDelayInMs, Int32 aRepeatSpeedInMs)
    at SharpLib.Hid.Handler.ProcessInput(Message& aMessage)
    at MediaPortal.InputDevices.HidListener.WndProc(Message& msg, Action& action, Char& key, Keys& keyCode)
    at MediaPortal.InputDevices.InputDevices.WndProc(Message& msg, Action& action, Char& key, Keys& keyCode)
    at MediaPortalApp.WndProc(Message& msg)

    After hours of searching I found out, that this is caused by my Dolphin Bar:

    http://www.mayflash.com/products/nintendowiigc/w010.html

    This device connects WIImote controllers to a PC as HID devices. The remotes can then be used in the Dolphin emulator.

    If I unplug the bar everything works. Any clue what's going wrong?

    UPDATE: I already have written a plugin that disables the Dolphin Bar some time ago, because I didn't like the blue lights of the bar while watching TV, but the plugin is a process plugin and therefore loaded after the input init. I modified the core to load and start this special plugin before input init. Now everything works for me. But I need a way to tell MePo to ignore this special HID, because it's for Dolphin only.
     
    Last edited: January 3, 2016
    • Thank You! Thank You! x 2
    • Like Like x 1
  10. Stéphane Lenclud
    • Team MediaPortal

    Stéphane Lenclud Development Group

    Joined:
    April 29, 2013
    Messages:
    2,562
    Likes Received:
    657
    Gender:
    Male
    Ratings:
    +1,270 / 8
    Home Country:
    Germany Germany
    Show System Specs
    Sorry you spent so much time on that issue.
    Does it really hangs completely during startup? Why would that USB device send WM_INPUT like this without anyone using it?
    You've got some cool hardware by the way :)
    Can you try the build published there and tell me if it fixes your problem?
     
  11. Marcus Venturi
    • Super User

    Marcus Venturi Super User

    Joined:
    March 23, 2012
    Messages:
    606
    Likes Received:
    507
    Gender:
    Male
    Ratings:
    +735 / 1
    Home Country:
    Germany Germany
    Show System Specs
    Thank you for the fast response. Will test it tomorrow. Going offline now. :sleep:
    The Dolphin Bar is really cool and my kids enjoy it playing WII via MediaPortal with the orignal WII remotes, but at the moment everthing stopped working. :(
     
Loading...

Users Viewing Thread (Users: 0, Guests: 0)

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice
  • About The Project

    The vision of the MediaPortal project is to create a free open source media centre application, which supports all advanced media centre functions, and is accessible to all Windows users.

    In reaching this goal we are working every day to make sure our software is one of the best.

             

  • Support MediaPortal!

    The team works very hard to make sure the community is running the best HTPC-software. We give away MediaPortal for free but hosting and software is not for us.

    Care to support our work with a few bucks? We'd really appreciate it!