Mediasite Plugin For MediaPortal (1 Viewer)

Vic Demented

Retired Team Member
  • Premium Supporter
  • March 4, 2013
    42
    25
    49
    Brugge, Belgium
    United States of America United States of America
    I'll work on adding something that has slides, however in order to get slides working, we must get video to play first since we need to get the currentTime from the playing video in order to determine which slide to show. When the desired video is selected how do you want me to give you the URL to the stream?
     

    morpheus_xx

    Lead Dev MP2
  • Team MediaPortal
  • March 24, 2007
    11,400
    6,971
    Germany Germany
    Country flag
    All MP2 players are working with so called MediaItems. A MediaItem can be created for file resources, or in our case for online streams.

    Playback of any MediaItem can be started with PlayItemsModel.PlayItem: https://github.com/MediaPortal/Medi...omponents/Media/Models/PlayItemsModel.cs#L213

    The creation of such a MediaItem is done by the MetadataExtractors (in case of file source) (see example in VideoBackgroundModel https://github.com/MediaPortal/Medi...ager/Models/VideoBackgroundModel.cs#L131-L133).

    For URL sources we need additionally a ResourceAccessor to load the stream. For the SlimTV (rtsp) part I have coded this already: https://github.com/MediaPortal/Medi...esourceProvider/SlimTvMediaItemBuilder.cs#L62 (this solution is bound to TsReader.ax and RTSP sources only, including some special logic for PiP handling, so not generic enough).

    @offbyone, can you post a link to your solution in OnlineVideos? I think a generic URL source player (and ResourceAccessor) could be good to have in standard MP2 configuration.

    @Vic Demented if you get a valid url source, tell me and I will look into possibilities how to start playback.

    Another question: what is the "master" of the playback? The video stream and its playback position? Or the Slides and their timecode? Or both can control each other?
     

    Vic Demented

    Retired Team Member
  • Premium Supporter
  • March 4, 2013
    42
    25
    49
    Brugge, Belgium
    United States of America United States of America
    @Vic Demented if you get a valid url source, tell me and I will look into possibilities how to start playback.
    Working on it :) They were having issues with SSL


    Another question: what is the "master" of the playback? The video stream and its playback position? Or the Slides and their timecode? Or both can control each other?
    Both can control each other. When the video is playing, the slide with that timecode should be display and if a slide is selected, then it should jump the video playback position to the timecode associated with that slide.
     

    morpheus_xx

    Lead Dev MP2
  • Team MediaPortal
  • March 24, 2007
    11,400
    6,971
    Germany Germany
    Country flag
    I've updated the model so that the ItemsList is refreshed correctly (after loading slides). ItemsList must not be recreated, but Clear/Add/FireChange.
     

    Vic Demented

    Retired Team Member
  • Premium Supporter
  • March 4, 2013
    42
    25
    49
    Brugge, Belgium
    United States of America United States of America
    Turns out that the SlideDetails object contains everything BUT the URL needed to load the image. So I modified the model to craft a valid URL and modified the dev server (hosted by Sonic Foundry for us) to circumvent this oversight.

    On another note, I will be speaking at the Unleash conference (http://www.sonicfoundry.com/unleash2013) regarding their API and if we get this done before April 28th then I will include it in my example.
     

    Vic Demented

    Retired Team Member
  • Premium Supporter
  • March 4, 2013
    42
    25
    49
    Brugge, Belgium
    United States of America United States of America
    Morpheus, you should now have what you need to start working on the video playback and displaying slides.
     

    morpheus_xx

    Lead Dev MP2
  • Team MediaPortal
  • March 24, 2007
    11,400
    6,971
    Germany Germany
    Country flag
    Good progress here: I can already play the video :)

    I plan to use the inbuilt chapter feature of the VideoPlayer to for seeking to slides. I also could add a specialized VideoPlayer, that uses LAVSplitterSource for loading the http stream (it works quite good for seeking)...
     

    morpheus_xx

    Lead Dev MP2
  • Team MediaPortal
  • March 24, 2007
    11,400
    6,971
    Germany Germany
    Country flag
    This works already quite good:

    Player is using LAV Splitter Source (needs to be installed), the slides including their images are shown on screen and can be used to seek video to matching position:

    01_PresentationAndSlides.png


    I will add an UIContributor to have the slides available in fullscreen mode and use it like an OSD for seeking (and indicating current position as well).
     

    Vic Demented

    Retired Team Member
  • Premium Supporter
  • March 4, 2013
    42
    25
    49
    Brugge, Belgium
    United States of America United States of America
    NICE!! Great job so far. I was thinking of pulling all the mediasite stuff into a helper class. What do you think?
     

    Users Who Are Viewing This Thread (Users: 0, Guests: 1)

    OP Similar threads Forum Replies Date
    joecrow 1.25.0 Radio Time plugin fails after Resume from Sleep with MP 1.25 Bugreports 4
    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) 11
    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 9
    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
    L Mediaportal 1.21 and Windows 10: user schedules de-activated when powerscheduler plugin is selected General Support 1
    C Can the XmlTv Plugin handle 600+ channels? General 3
    M Online Video Plugin V.2.32 keine Installtion unter MediaPortal 1.22 ? TV / Streaming 3
    emphatic Pictures in the cloud - would a plugin be possible for services like Google Photos MediaPortal 1 Plugins 1
    C where is the Online Videos plugin General Support 1
    Similar threads

























    Top Bottom