Netflix for OnlineVideos (2 Viewers)

Brownard

Development Group
  • Team MediaPortal
  • March 21, 2007
    2,305
    1,884
    Home Country
    United Kingdom United Kingdom
    I haven't read all of the posts re remote/WifiRemote handling so sorry if I'm off the mark.

    The BrowserPlayer doesn't receive commands/events from MediaPortal, it merely uses the same code base to map the key presses that the browser form receives (because it is in focus) to the actions that they would trigger in MP, i.e. the OnNewAction handler in the browser form is not triggered if the event is fired in MP, they are completely separate, Consequently WifiRemote (or any device that communicates directly with MP) will not work.
     

    johanj

    MP Donator
  • Premium Supporter
  • January 31, 2009
    781
    398
    46
    Home Country
    Sweden Sweden
    @Brownard , thanks for clarifying. I get it working fine when using WifiRemote and sending keys to the active window but that is not exactly what I would like since I then need to add yet another user setting in MP iViewer(send commands or keys to active window from remote). Also all the other remotes that send commands directly to MP do not work.

    What would happen if in the BrowserPlayer and function GUIWindowManager_OnNewAction map the different remote actions (play, stop, pause, skip left/right and back) and send keys with
    System.Windows.Forms.SendKeys.Send
    or
    System.Windows.Forms.SendKeys.SendWait
    The keys to send would then be: "P", "B", " ", {RIGHT}, {LEFT}, {ESC}
     

    Jason Pyke

    Portal Pro
    April 12, 2013
    96
    38
    Home Country
    Great Britain (UK) Great Britain (UK)
    Thanks for that @Brownard, I guess the attaching to OnNewAction in the browser host is a red herring then.

    I've just refactored the OnNewAction from within OnlineVideos so it sends key presses for those events and it appears to work from WifiRemote. I'd be grateful if you're able to give it a test out as well @Ministerk before its released. Unfortunately it'll need a new Online Videos release before its available.

    Longer term I'll see if I can somehow forward the whole OnNewAction event from OV to the browser host so we can trap all actions, but that's for another day.
     

    Ministerk

    Super User
  • Team MediaPortal
  • Super User
  • November 28, 2007
    970
    826
    Uppsala
    Home Country
    Sweden Sweden
    Quick test and reply.

    Well I can control the browser player with WifiRemote, BUT at the same time I do control mp in the background.
    This is nothing we could do anything about (I think) and is something the user should be aware of - unwanted stuff could be happening in MP.
    It's always going to be a workaround, WifiRemote is made for controlling MP and not an external player, but the workaround works...
     

    azzuro

    Test Group
  • Team MediaPortal
  • May 10, 2007
    9,984
    5,663
    France - IDF
    Home Country
    France France
    Hello
    @Ministerk
    i'm happy to see your plugin have good feedback.
    About your plugins can you share the source code ? on github or another site. we like to see source plugins for MP plugins, this can increase few dev to help you with coding patch.

    Thank you.
     

    Ministerk

    Super User
  • Team MediaPortal
  • Super User
  • November 28, 2007
    970
    826
    Uppsala
    Home Country
    Sweden Sweden
    Hello
    @Ministerk
    i'm happy to see your plugin have good feedback.
    About your plugins can you share the source code ? on github or another site. we like to see source plugins for MP plugins, this can increase few dev to help you with coding patch.

    Thank you.
    Well, this isn't a plugin for MediaPortal it's just one of many hundreds of sites in the OnlineVideos plugin. All my sites sources are available in the OnlineVideos SVN repo. Of course anyone are welcome to supply patches, but it's only me (and offbyone) that can publish my sites. The BrowserPlayer is also a part of OnlineVideos and the source is available in the same repo.
     

    powermarcel10

    Retired Team Member
  • Premium Supporter
  • November 30, 2010
    2,839
    898
    36
    Groningen
    Home Country
    Netherlands Netherlands
    Hi guys,

    My Netflix is opening on another monitor than MP is running.. Anyone a suggestion maybe? Also when I open Internet Explorer to the screen mediaPortal is running at, and start MP with Netflix, it still opens on the wrong monitor..

    Is it just Internet Explorer that this plugin uses? If I know the exact .exe file I can configure it that it Always runs at a specific monitor (I think that there is software for that). Even if it is Internet Explorer, I could use another browser for my other monitors..
     

    Ministerk

    Super User
  • Team MediaPortal
  • Super User
  • November 28, 2007
    970
    826
    Uppsala
    Home Country
    Sweden Sweden
    Hi guys,

    My Netflix is opening on another monitor than MP is running.. Anyone a suggestion maybe? Also when I open Internet Explorer to the screen mediaPortal is running at, and start MP with Netflix, it still opens on the wrong monitor..

    Is it just Internet Explorer that this plugin uses? If I know the exact .exe file I can configure it that it Always runs at a specific monitor (I think that there is software for that). Even if it is Internet Explorer, I could use another browser for my other monitors..

    I think you can use UltraMon to assign startup monitor for an application, but it's neither free nor open. The browser application is MP_INSTALL_DIR\MediaPortal\plugins\windows\onlinevideos\OnlineVideos.WebAutomation.BrowserHost.exe
     

    Users who are viewing this thread

    Top Bottom