Plugin: MP2Extended (1 Viewer)

FreakyJ

Development Group
  • Team MediaPortal
  • July 25, 2010
    4,024
    1,420
    Germany Germany
    Country flag
    • Thread starter
    • Moderator
    • #1
    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


    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
     

    Attachments

    Last edited:

    MrTechno

    Development Group
  • Team MediaPortal
  • February 27, 2011
    1,256
    511
    London
    United Kingdom United Kingdom
    Country flag
    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
    42
    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

    Development Group
  • Team MediaPortal
  • February 27, 2011
    1,256
    511
    London
    United Kingdom United Kingdom
    Country flag
    @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

    Development Group
  • Team MediaPortal
  • July 25, 2010
    4,024
    1,420
    Germany Germany
    Country flag
    • Thread starter
    • Moderator
    • #7
    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
    42
    Sweden Sweden
    MrTecho, whats your thoughts regarding separate codebase or connection to MPExtended?
     

    johanj

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

    FreakyJ

    Development Group
  • Team MediaPortal
  • July 25, 2010
    4,024
    1,420
    Germany Germany
    Country flag
    • Thread starter
    • Moderator
    • #10
    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

    Similar threads
    OP Title Forum Replies Date
    C Issue with plugin initialisation My TVSeries 7
    morpheus_xx [Finished] "What's New" plugin for MP2 upgrades MediaPortal 2 20
    da3dsoul [Request] An MVP Plugin example for custom settings in MP2 Plugin Development 2
    da3dsoul MP2 Plugin - Getting Started (Directory Tree and Player) Plugin Development 27
    M Installing Plugins Newcomers Forum 2
    joecrow 1.25.0 Radio Time plugin fails after Resume from Sleep with MP 1.25 Bugreports 10
    P MP2: US user, OTA - can NOT get SchedulesDirect plugin to work on MP1 or MP2 --> how do I get OTA schedule? General 5
    E aktuelle englische Forums Webseite von - Showtime Plugin v3 Plugins & Erweiterungen 4
    mrmojo666 [Tv Server Plugin ]Direct Show Video Control Plugin 0.0.0.1 for Hauppauge PVR cards MediaPortal 1 Plugins 0
    joecrow MultiShortcut Plugin (Uavailable) in DWHD skin General Support 58
    vapourEyes Building TV Plugin General Development (no feature request here!) 49
    Golf4 Nach Windows-Updates läuft TV-Plugin nicht mehr Allgemeines Support- und Diskussionsforum 0
    joecrow How about a Launcher plugin for MP1? MediaPortal 1 6
    D [solved] TVServer Plugin must be missing something. General Development (no feature request here!) 1
    framug Nouveau plugin XmlTvFR pour récupérer le guide télé français Kazer / ZguideTv (WebEPGfr) 28
    emphatic Allow remote control mapping of all plugins Improvement Suggestions 0
    D Where should plugins be located on hard drive? General Support 0
    D how to disengage from one version of a plugin to use another Newcomers Forum 0
    cbr954rr How to disable a pre-configured plugin? General 2
    mrmojo666 [Plugin]Marantz Control Plugin 0.0.0.2 MediaPortal 1 Plugins 2
    mrmojo666 beginner: trying to write a plugin, need help to catch event General Development (no feature request here!) 3
    framug [Rejected] Fix PowerScheduler plugin for MP2 single seat Submit: Code Patches 11
    doskabouter [Question] Stale plugins Developer Discussions 9
    M MP1 stops responding after Starting Plugins General Support 14
    Terra LAVFilter Plugin cannot be updated (MP1.23) MediaPortal 1 Plugins 10

    Similar threads

    Top Bottom