Plugin: MP2Extended (2 Viewers)

FreakyJ

Retired Team Member
  • Premium Supporter
  • July 25, 2010
    4,024
    1,420
    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


    01.10.2022 (attached installer)

    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.
     

    Attachments

    • MP2Extended_1.10.2022.rar
      1.8 MB
    Last edited by a moderator:

    MrTechno

    Retired Team Member
  • Premium Supporter
  • February 27, 2011
    1,256
    511
    London
    Home Country
    United Kingdom United Kingdom
    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.
     

    johanj

    MP Donator
  • Premium Supporter
  • January 31, 2009
    781
    398
    46
    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
     

    MrTechno

    Retired Team Member
  • Premium Supporter
  • February 27, 2011
    1,256
    511
    London
    Home Country
    United Kingdom United Kingdom
    @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?
     

    FreakyJ

    Retired Team Member
  • Premium Supporter
  • July 25, 2010
    4,024
    1,420
    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.
     

    johanj

    MP Donator
  • Premium Supporter
  • January 31, 2009
    781
    398
    46
    Home Country
    Sweden Sweden
    MrTecho, whats your thoughts regarding separate codebase or connection to MPExtended?
     

    johanj

    MP Donator
  • Premium Supporter
  • January 31, 2009
    781
    398
    46
    Home Country
    Sweden Sweden
    What is the base url to MP2 webserver? Can you give example url to the getservicedescription?
     
    Last edited:

    FreakyJ

    Retired Team Member
  • Premium Supporter
  • July 25, 2010
    4,024
    1,420
    Home Country
    Germany Germany
    What is the base url to MP2 webserver?
    Start the MP2-Server and open the server.log
    you should see a line like this:
    [2015-10-05 16:17:33,992] [5642 ] [Main ] [INFO ] - ResourceServer: Started HTTP server (IPv4) on address 0.0.0.0 at port 26405

    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:
    Property Name="HttpServerPort">
        <int>26405</int>
      </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 who are viewing this thread

    Top Bottom