Plugin: MP2Extended

Discussion in 'MP2Extended' started by FreakyJ, October 5, 2015.

  1. FreakyJ
    • Team MediaPortal

    FreakyJ Development Group

    Joined:
    July 25, 2010
    Messages:
    4,021
    Likes Received:
    839
    Gender:
    Male
    Ratings:
    +1,424 / 1
    Home Country:
    Germany Germany
    The target of this plugin is to bring the MPExtended API to MP2. A big "thank you" goes to the original MPExtended Developers. I reused parts of their code in this plugin.



    The first version implemements most of the TvShow part from the MAS.

    Installation:
    Copy the folder into the Plugin dir of the MP2-Server


    Changelog (open)

    17.12.2015 (linked installer needed as base version)
    • OnlineVideos integration
    • User Authentication using Digest Auth (default User: admin Password: admin )
    • User Management: /MPExtended/DebugAccessService/html/ShowUsers (User Authentication must be activated)
    • Settings Management: /MPExtended/DebugAccessService/html/ShowSettings
    • jquery integration for User and Settings Management (www folder, looks like chaos but ordered in the solution)
    • reworked error pages
    • smaller bug fixes
    • probably something more?!

    14.11.2015 (linked installer needed as base version)

    • Fixed URLs in the dorumentation
    • Hacked ReadSettingFromDatabase in

    14.11.2015
    • Fixed image file paths with special characters causing errors (thanks @henso )
    • Fixed file accessor could be mistaken for a network accessor (thanks @henso )
    • Fixed subtitle extraction not supporting impersonation (thanks @henso )
    • Fixed DiskSpaceInformation
    • Fixed ExtractImage
    • Fixed GetMediaInfo
    • added FileName to BaseRecordingBasic
    • Added initial support for partial HLS transcoding (thanks @henso )
    • Fixed a lot of impersonation errors (thanks @henso )
    • added GetMovieActorCount
    • added GetMovieActors
    • added CreateScheduleDetailed
    • fixed CreateSchedule to support titles
    • added EditSchedule
    • Added internal Api Documentation: http://[ IP ]:[ PORT ]/MPExtended/DebugAccessService/html/GetApi (still WIP)
    • Added preliminary support for live streams (thanks @henso )
    • Improved handling of images based subs (thanks @henso )
    • Subtitles now synced to partial transcodes (thanks @henso )
    • Added startstream support (thanks @henso )
    • Added support for using profile name as profile Id (thanks @henso )
    • Added stopstream support (thanks @henso)
    • Fixed wrong audio Id was used (thanks @henso )
    • some minor clean ups and fixes

    31.10.2015 (linked installer needed as base version)
    • Fixed Thumbs for Recordings

    29.10.2015

    • changed the settings handling (thanks @henso)
    • second try to fix the impersonation error (thanks @henso)
    • fixed a threading issue in GetArtworkResized and GetArtwork
    • audioId in StartStream... can now be null
    • added more detailed program information
    25.10.2015
    • Implemented all MAS FileSystem functions
    • Improved speed for TVE3 in EPG search (couldn't test this)
    • GetLocalDiskInformation for TAS and MAS
    • implemented GetActiveCards
    • huge improvement in streaming support (big thanks henso!!)
    • Added a nice looking error page

    24.10.2015 (linked installer needed as base version)

    • One can now get all streaming sessions
    • Added some FileSystem functions from MAS
    • Added Recording Disk Space information from TAS
    • throw less exceptions while trying to get Artwork
    22.10.2015
    • Fixed the aspect ratio problem
    • new TAS functions (especially Radio & Schedules) and basic EPG search -> needs improvement)
    • removed some ToDos

    18.10.2015

    • Basic work to implement HTTP-Authentication (MediaPortal.Common needs to be replaced)
    • Extended TAS (especially Schedules and Recordings)
    • Bug Fixes + Speed improvements

    15.10.2015

    • Some basic WSS implementation (includes transcodes Streaming to the client, Profiles might need some tuning)
    • Some Speed improvements
    • TAS implementation: includes EPG and RTSP Timeshifting to the Client (no Transcoding)

    08.10.2015

    • added an image cache for resized images
    • moved some redundant code to base classes, still wip
    • added missing Picture api functions -> GetPictureSubCategories just returns an empty list

    07.10.2015

    • started adding TAS functions
    • started to implement Streaming (WSS)
    • small bug fixes
    06.10.2015
    • added a bung of nee API calls
    • fixed some smaller bugs


    Important Note: To get the full functionality a reimport is necessary! This can be triggered from within the GUI. No need to delete and readd the Media Source, just trigger a reimport.

    Link to installer: http://tinyurl.com/qgufrrc
     

    Attached Files:

    Last edited: December 17, 2015
    • Thank You! Thank You! x 4
    • Like Like x 3
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. MrTechno
    • Team MediaPortal

    MrTechno Development Group

    Joined:
    February 27, 2011
    Messages:
    1,256
    Likes Received:
    275
    Gender:
    Male
    Location:
    London
    Ratings:
    +515 / 1
    Home Country:
    United Kingdom United Kingdom
    Show System Specs
    Is the source on a branch in GitHub? I have some MPExtended code from a long time back which could talk to MP2 which might move things further along.
     
  4. FreakyJ
    • Team MediaPortal

    FreakyJ Development Group

    Joined:
    July 25, 2010
    Messages:
    4,021
    Likes Received:
    839
    Gender:
    Male
    Ratings:
    +1,424 / 1
    Home Country:
    Germany Germany
    • Thank You! Thank You! x 1
  5. johanj
    • Premium Supporter

    johanj Well-Known Member

    Joined:
    January 31, 2009
    Messages:
    781
    Likes Received:
    270
    Gender:
    Male
    Ratings:
    +398 / 1
    Home Country:
    Sweden Sweden
    I add my wishlist for MPExt here instead in the WifiRemote thread

    Movies:

    MediaAccessService:
    GetMoviesBasic
    GetMoviesDetailedByRange
    GetMovieDetailedById
    GetExternalMediaInfo
    GetMovieGenres

    StreamingService:
    GetArtworkResized
    GetMediaInfo


    Music:
    MediaAccessService:
    GetMusicGenres
    GetMusicArtistsDetailed
    GetMusicAlbumsBasicForArtist
    GetMusicAlbumBasicById
    GetMusicTracksBasicForAlbum
    GetMusicTrackBasicById
    GetExternalMediaInfo

    Music playlists:
    GetPlaylists
    CreatePlaylist
    DeletePlaylist
    AddPlaylistItem
    AddPlaylistItems
    ClearAndAddPlaylistItems

    StreamingService:
    GetArtworkResized
    GetMediaInfo
     
  6. pünktchen

    pünktchen Portal Pro

    Joined:
    October 26, 2010
    Messages:
    537
    Likes Received:
    147
    Ratings:
    +200 / 0
    Home Country:
    Germany Germany
    And of course the complete TAS [emoji1]
     
  7. MrTechno
    • Team MediaPortal

    MrTechno Development Group

    Joined:
    February 27, 2011
    Messages:
    1,256
    Likes Received:
    275
    Gender:
    Male
    Location:
    London
    Ratings:
    +515 / 1
    Home Country:
    United Kingdom United Kingdom
    Show System Specs
    @FreakyJ you don't seem to depend on MPExtended. Is this a separate codebase that exposes the same web API i.e. you don't need to run MPExtended service?
     
  8. FreakyJ
    • Team MediaPortal

    FreakyJ Development Group

    Joined:
    July 25, 2010
    Messages:
    4,021
    Likes Received:
    839
    Gender:
    Male
    Ratings:
    +1,424 / 1
    Home Country:
    Germany Germany
    Exactly! I thought the amount of time needed is the same, but you can get it installed by using the pluginmanager later.
    I reused the interfaces.
     
    • Like Like x 1
  9. johanj
    • Premium Supporter

    johanj Well-Known Member

    Joined:
    January 31, 2009
    Messages:
    781
    Likes Received:
    270
    Gender:
    Male
    Ratings:
    +398 / 1
    Home Country:
    Sweden Sweden
    MrTecho, whats your thoughts regarding separate codebase or connection to MPExtended?
     
  10. johanj
    • Premium Supporter

    johanj Well-Known Member

    Joined:
    January 31, 2009
    Messages:
    781
    Likes Received:
    270
    Gender:
    Male
    Ratings:
    +398 / 1
    Home Country:
    Sweden Sweden
    What is the base url to MP2 webserver? Can you give example url to the getservicedescription?
     
    Last edited: October 5, 2015
  11. FreakyJ
    • Team MediaPortal

    FreakyJ Development Group

    Joined:
    July 25, 2010
    Messages:
    4,021
    Likes Received:
    839
    Gender:
    Male
    Ratings:
    +1,424 / 1
    Home Country:
    Germany Germany
    Start the MP2-Server and open the server.log
    you should see a line like this:
    This gives you the port. You can define e fixed port here:
    C:\Users\All Users\Team MediaPortal\MP2-Server\Config in the MediaPortal.Common.Services.ResourceAccess.Settings.ServerSettings.xml
    changing:
    Code (Text):
    1. Property Name="HttpServerPort">
    2.     <int>26405</int>
    3.   </Property>
    You should have a 0 there, I already changed my config^^

    IP is your computer IP, the rest is teh same as in MPExteded:
    192.168.178.26:26405/MPExtended/StreamingService/stream/GetArtworkResized?provider=0&artworktype=2&mediatype=3&id=857d3c03-d053-4b27-86a7-8690a1cc0cd9&maxWidth=6000&maxHeight=2000&borders=FF0000
     

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!