Mediasite Plugin For MediaPortal | Page 4

Discussion in 'Plugin Development' started by Vic Demented, March 11, 2013.

  1. Vic Demented
    • Premium Supporter

    Vic Demented Retired Team Member

    Joined:
    March 4, 2013
    Messages:
    42
    Likes Received:
    25
    Gender:
    Male
    Location:
    Brugge, Belgium
    Ratings:
    +25 / 0
    Home Country:
    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?


     
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. morpheus_xx
    • Team MediaPortal

    morpheus_xx Lead Dev MP2

    Joined:
    March 24, 2007
    Messages:
    11,090
    Likes Received:
    4,766
    Ratings:
    +6,826 / 11
    Home Country:
    Germany Germany
    Show System Specs
    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?
     
    • Like Like x 2
  4. Vic Demented
    • Premium Supporter

    Vic Demented Retired Team Member

    Joined:
    March 4, 2013
    Messages:
    42
    Likes Received:
    25
    Gender:
    Male
    Location:
    Brugge, Belgium
    Ratings:
    +25 / 0
    Home Country:
    United States of America United States of America
    Working on it :) They were having issues with SSL


    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.
     
    • Like Like x 1
  5. offbyone
    • Team MediaPortal

    offbyone Development Group

    Joined:
    April 26, 2008
    Messages:
    3,981
    Likes Received:
    2,704
    Gender:
    Male
    Location:
    Stuttgart
    Ratings:
    +3,303 / 3
    Home Country:
    Germany Germany
    Show System Specs
    • Like Like x 2
  6. morpheus_xx
    • Team MediaPortal

    morpheus_xx Lead Dev MP2

    Joined:
    March 24, 2007
    Messages:
    11,090
    Likes Received:
    4,766
    Ratings:
    +6,826 / 11
    Home Country:
    Germany Germany
    Show System Specs
    I've updated the model so that the ItemsList is refreshed correctly (after loading slides). ItemsList must not be recreated, but Clear/Add/FireChange.
     
    • Like Like x 1
  7. Vic Demented
    • Premium Supporter

    Vic Demented Retired Team Member

    Joined:
    March 4, 2013
    Messages:
    42
    Likes Received:
    25
    Gender:
    Male
    Location:
    Brugge, Belgium
    Ratings:
    +25 / 0
    Home Country:
    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.
     
    • Like Like x 2
  8. Vic Demented
    • Premium Supporter

    Vic Demented Retired Team Member

    Joined:
    March 4, 2013
    Messages:
    42
    Likes Received:
    25
    Gender:
    Male
    Location:
    Brugge, Belgium
    Ratings:
    +25 / 0
    Home Country:
    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.
     
  9. morpheus_xx
    • Team MediaPortal

    morpheus_xx Lead Dev MP2

    Joined:
    March 24, 2007
    Messages:
    11,090
    Likes Received:
    4,766
    Ratings:
    +6,826 / 11
    Home Country:
    Germany Germany
    Show System Specs
    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)...
     
  10. morpheus_xx
    • Team MediaPortal

    morpheus_xx Lead Dev MP2

    Joined:
    March 24, 2007
    Messages:
    11,090
    Likes Received:
    4,766
    Ratings:
    +6,826 / 11
    Home Country:
    Germany Germany
    Show System Specs
    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).
     
    • Like Like x 1
  11. Vic Demented
    • Premium Supporter

    Vic Demented Retired Team Member

    Joined:
    March 4, 2013
    Messages:
    42
    Likes Received:
    25
    Gender:
    Male
    Location:
    Brugge, Belgium
    Ratings:
    +25 / 0
    Home Country:
    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?
     
Loading...

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!