[Finished] - Add dialog for plugins (OV, Webradio..) that ask about concurrent playback

Discussion in 'Archive' started by Holzi, October 2, 2013.

  1. Holzi
    • Team MediaPortal

    Holzi Super Moderator

    Joined:
    April 21, 2010
    Messages:
    7,928
    Likes Received:
    1,591
    Gender:
    Male
    Location:
    Ba-Wü
    Ratings:
    +2,228 / 8
    Home Country:
    Germany Germany
    Show System Specs
    Hello!
    If I have local media or LiveTV playing and then wanna start Webradio/OV stream the current stream stops and the plugin stream starts. Therefore it is not possible to have local media streams and plugin streams playing concurrently in multiple players.
    Would be great if it is possible to achieve that plugins will act like local media playback.
    Thanks! :)


     
    • Agree Agree x 2
  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,082
    Likes Received:
    4,765
    Ratings:
    +6,823 / 11
    Home Country:
    Germany Germany
    Show System Specs
    This is in fact easy to change, I think it's one line of code :)
     
    • Like Like x 2
  4. Holzi
    • Team MediaPortal

    Holzi Super Moderator

    Joined:
    April 21, 2010
    Messages:
    7,928
    Likes Received:
    1,591
    Gender:
    Male
    Location:
    Ba-Wü
    Ratings:
    +2,228 / 8
    Home Country:
    Germany Germany
    Show System Specs
    If you have something to test just tell. :)
     
  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
    It is easy to change the line that starts playback, but the problem is how handle this feature correctly.

    If I tell OV to start playing its videos concurrently -> they will always do so, meaning even when one OV vid is playing it will start the second one in the second player instance. This is not what you'd want.
    I also dont want a dialog always asking me if I want to play concurrent or not.

    So what would be the best way @Holzi ? What is the intended use case?
     
  6. Holzi
    • Team MediaPortal

    Holzi Super Moderator

    Joined:
    April 21, 2010
    Messages:
    7,928
    Likes Received:
    1,591
    Gender:
    Male
    Location:
    Ba-Wü
    Ratings:
    +2,228 / 8
    Home Country:
    Germany Germany
    Show System Specs
    The intended use case is to play a OV stream and a Webradio stream concurrently for example. :) Thats not possible atm. Same goes for LiveTV & OV or LiveTV & Webradio.

    I understand this. But I think it is that way if you want to play local media.
     
  7. 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
    Hm, how about a middle way: (if I can get it to work)
    If there is already a player with Online Video active, I'll stop that one and start playback of the newly selected Online Video. In any other case I start playback concurrent, meaning when TV or Radio/WebStream or LocalVideo is running it will keep playing?
     
    • Thank You! Thank You! x 1
  8. morpheus_xx
    • Team MediaPortal

    morpheus_xx Lead Dev MP2

    Joined:
    March 24, 2007
    Messages:
    11,082
    Likes Received:
    4,765
    Ratings:
    +6,823 / 11
    Home Country:
    Germany Germany
    Show System Specs
    You can use the method "PlayItemsModel.CheckQueryPlayAction(MediaItem)", which checks player state, resume handling etc.

    This is the default method from MediaLibrary. For TV I cannot use it directly, because I need to switch channels differently.
     
  9. chefkoch
    • Premium Supporter

    chefkoch Retired Team Member

    Joined:
    October 5, 2004
    Messages:
    3,130
    Likes Received:
    1,456
    Gender:
    Male
    Location:
    Dresden / Munich / Maastricht
    Ratings:
    +1,773 / 1
    Home Country:
    Germany Germany
    I also would prefer a consistent user experience not matter if I start 2 videos in OV or 2 in movies. Nevertheless I understand your opinion. Would it be possible to make that configurable based on the MediaAspects or plugin or....

    If not, no big deal. I'll have not strong opinion about it ;)
     
  10. Holzi
    • Team MediaPortal

    Holzi Super Moderator

    Joined:
    April 21, 2010
    Messages:
    7,928
    Likes Received:
    1,591
    Gender:
    Male
    Location:
    Ba-Wü
    Ratings:
    +2,228 / 8
    Home Country:
    Germany Germany
    Show System Specs
    I think this is a good approach, although it is not consistent with video playback as chefkoch mentioned.
    And does this have to be added by every single plugin (e.g. WebRadio too) individually or could this behaviour changed in MP2 core?
     
  11. 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
    It would be a Onlinevideos specific behaviour (simply due to the fact that the video content is streamed and streaming two video at the same time could easily saturate your connection or not be allowed by the server).

    And to go further it could be made an OV setting, so you can configure it.
     
    • Thank You! Thank You! x 2
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!