New feature: Amazon Prime with HTML5 player (MP2 only!) (1 Viewer)

morpheus_xx

Retired Team Member
  • Team MediaPortal
  • March 24, 2007
    12,073
    7,459
    Home Country
    Germany Germany
    Hi all,

    I spent some hours to improve the Amazon Prime support. Main changes are:
    • Added support for different login screens of Amazon
    • Added support for new HTML5 player
    • Added setting to select new player, removed "internal" as it is no longer working

    How to install this in MediaPortal 2?


    You need to do 2 steps:
    • Extract the "20160129-OnlineVideos_AmazonPrime_HTML5.7z" into C:\Program Files (x86)\Team MediaPortal\MP2-Client\Plugins\
    • Extract 20160129-OnlineVideos_SiteUtils_AmazonPrime.7z to folder C:\ProgramData\Team MediaPortal\MP2-Client\OnlineVideos\SiteUtils\
    Overwrite existing files.

    How does it look like?

    Settings, new option to select HTML5 player
    01_NewBrowserType.jpg

    HTML5 based playback (screenshots only capture UI, not the video ;))
    02_HTML5_player.jpg

    Normal silverlight based playback
    03_Silverlight_player.jpg

    Will it work in MP1?


    No, but changes could be backported by someone else, code is pushed at https://github.com/offbyoneBB/mp-onlinevideos2/tree/EXP_BrowserHostMP2


    @Developers @Testers @Designers and all others of course :)


    Please give this version a try, it is very fresh and untested!

    Report any issues you find, especially when using different Windows versions (Win 7, 8, 10!)


    Updates:
    v2: 2016-01-30:

    • fixed mimizing of MP2 when playback starts, was commented out by accident
    • fixed crash on playback of all other streams (broken MPUrlSourceSplitter replaced)
     

    Attachments

    • 20160129-OnlineVideos_SiteUtils_AmazonPrime.7z
      57.7 KB
    • 20160130-OnlineVideos_AmazonPrime_HTML5_v2.7z
      5.1 MB
    Last edited:

    breese

    Retired Team Member
  • Premium Supporter
  • July 11, 2011
    3,902
    770
    65
    Arlington Heights, Illinois
    Home Country
    United States of America United States of America
    I did a search for Amazon in online videos
    Also, under settings there is nothing for Amazon Prime

    [2016-01-29 15:40:36,192] [421639 ] [Thread10 ] [WARN ] - [OnlineVideos] System.NullReferenceException: Object reference not set to an instance of an object.
    at OnlineVideos.MediaPortal2.OnlineVideosWorkflowModel.<StartSearch>b__34() in d:\Coding\MP\MP2\MP2_git\OnlineVideos\OnlineVideos.MediaPortal2\Models\OnlineVideosWorkflowModel.cs:line 303
    at OnlineVideos.MediaPortal2.BackgroundTask.<>c__DisplayClass2`1.<Start>b__0() in d:\Coding\MP\MP2\MP2_git\OnlineVideos\OnlineVideos.MediaPortal2\BackgroundTask.cs:line 38
     

    morpheus_xx

    Retired Team Member
  • Team MediaPortal
  • March 24, 2007
    12,073
    7,459
    Home Country
    Germany Germany
    • Thread starter
    • Moderator
    • #3
    Updated first post with build v2. See post for details.
     

    breese

    Retired Team Member
  • Premium Supporter
  • July 11, 2011
    3,902
    770
    65
    Arlington Heights, Illinois
    Home Country
    United States of America United States of America
    Loaded new code, same affect
    Amazon Prime UK and DE are listed at the Bootom of Online Videos (reminds me, when you exit a channel, it put you at the Top of the channel list)
    When I search for amazon or Amazon, I get the same error.
    When I go into Settings, Plugins, Online Videos, still no change in the menus

    [2016-01-30 07:36:36,699] [181109 ] [Thread32 ] [WARN ] - [OnlineVideos] System.NullReferenceException: Object reference not set to an instance of an object.
    at OnlineVideos.MediaPortal2.OnlineVideosWorkflowModel.<StartSearch>b__34() in d:\Coding\MP\MP2\MP2_git\OnlineVideos\OnlineVideos.MediaPortal2\Models\OnlineVideosWorkflowModel.cs:line 303
    at OnlineVideos.MediaPortal2.BackgroundTask.<>c__DisplayClass2`1.<Start>b__0() in d:\Coding\MP\MP2\MP2_git\OnlineVideos\OnlineVideos.MediaPortal2\BackgroundTask.cs:line 38


    Amazon.jpg AmazonSettings.jpg
     

    morpheus_xx

    Retired Team Member
  • Team MediaPortal
  • March 24, 2007
    12,073
    7,459
    Home Country
    Germany Germany
    • Thread starter
    • Moderator
    • #5
    Thanks breese for testing. The errors in search model are probably something @offbyone can check.

    To access the site-specific settings, you need to right click on the site inside the main OV list (not in configuration!). But for testing the playback you would need to have a valid Amazon Prime enabled account.
     

    Users who are viewing this thread

    Top Bottom