WifiRemote for MP2 | Page 2

Discussion in 'WifiRemote' started by FreakyJ, September 30, 2015.

  1. johanj
    • Premium Supporter

    johanj Well-Known Member

    Joined:
    January 31, 2009
    Messages:
    781
    Likes Received:
    270
    Gender:
    Male
    Ratings:
    +398 / 1
    Home Country:
    Sweden Sweden
    The 'nowplayingupdate' message seems to be correct but do you send the 'status' and 'nowplaying' message? The nowplaying is sent when media starts and one can also request for it. The nowplayingupdate is a much smaller message mainly for updating progress bar.



    Edit. Volume control works btw
    Edit2. The keyboard buttons works fine, so I could e.g. rename the client name using the iOS keyboard.
     
    Last edited: October 1, 2015
  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
    Nice progress!

    Thanks for working on this feature :)
     
    • Thank You! Thank You! x 1
  4. FreakyJ
    • Team MediaPortal

    FreakyJ Development Group

    Joined:
    July 25, 2010
    Messages:
    4,021
    Likes Received:
    839
    Gender:
    Male
    Ratings:
    +1,424 / 1
    Home Country:
    Germany Germany
    I would say yes:
    This is how it looks like in the DebugWindow from the DemoClient. I have no clue how it should look like^^
     
  5. FreakyJ
    • Team MediaPortal

    FreakyJ Development Group

    Joined:
    July 25, 2010
    Messages:
    4,021
    Likes Received:
    839
    Gender:
    Male
    Ratings:
    +1,424 / 1
    Home Country:
    Germany Germany
  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
    It will get funny once you send progress for 2 concurrent players :sneaky:
    ;)
     
  7. 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
    In principle MPExtended could act like a MP2-Client and query the MediaLibrary from server via UPnP interface. This way we could browse all items like we do in client.

    In this case MPExtended would need to get a "plugin" that does not query DB directly, but using the UPnP layer. I have no idea how MPExtended is implemented and if we could add such a plugin...
     
  8. johanj
    • Premium Supporter

    johanj Well-Known Member

    Joined:
    January 31, 2009
    Messages:
    781
    Likes Received:
    270
    Gender:
    Male
    Ratings:
    +398 / 1
    Home Country:
    Sweden Sweden
    I get the nowplaying message and also info. But I use the MediaInfo for checking the type of nowplaying screen to use in the app use that is null.

    data.MediaInfo.MediaType: can in MP1 be of the types:
    movie, video, series, music, radio, recording, tv

    I also check for
    if (data.File != undefined && data.File != "" && self.isPlaying) {
    for showing a nowplaying screen with 'unknown' mediatype but that is not either fullfilled in this case so no now playing screen is shown at all.

    I also use the fields:
    data.CurrentModule
    data.SelectedItem
    of the status message to show what is selected when navigating in the gui. This can be useful when not seeing the tv screen.

    But overall most messages seems to be there. It's more of filling in the missing fields.
     
  9. FreakyJ
    • Team MediaPortal

    FreakyJ Development Group

    Joined:
    July 25, 2010
    Messages:
    4,021
    Likes Received:
    839
    Gender:
    Male
    Ratings:
    +1,424 / 1
    Home Country:
    Germany Germany
    The function was called to early, because the Messages from the Player are not fine enough. I create a workaround for that by moving it to the update Thread and check for NowPlaying.

    This is implemented for now, just for your information:
    Code (C):
    1. if (mediaItem.Aspects.ContainsKey(AudioAspect.ASPECT_ID))
    2.             return new NowPlayingMusic(mediaItem);
    3.           // TODO Add Radio
    4.           // TODO Add Dvd
    5.           if (mediaItem.Aspects.ContainsKey(MovieAspect.ASPECT_ID))
    6.             return new NowPlayingMovingPictures(mediaItem);
    7.  
    8.           if (mediaItem.Aspects.ContainsKey(SeriesAspect.ASPECT_ID))
    9.             return new NowPlayingSeries(mediaItem);
    10.  
    11.             if (mediaItem.Aspects.ContainsKey(VideoAspect.ASPECT_ID))
    12.           return new NowPlayingVideo(mediaItem);
    13.           // TODO: Add Tv
    Could you give me some more information on these fields? I don't really know what They mean :)
    Does Module mean the Screen? E.g. Configuration?
     
    • Like Like x 1
  10. johanj
    • Premium Supporter

    johanj Well-Known Member

    Joined:
    January 31, 2009
    Messages:
    781
    Likes Received:
    270
    Gender:
    Male
    Ratings:
    +398 / 1
    Home Country:
    Sweden Sweden
    CurrentModule is e.g. Moving Pictures, Pictures, Tv etc
    Selected item is the item that is selected in the gui, e.g. a program in the epg or a movie name.

    Using the shortcuts to the plugins, navigating with arrow keys and looking at these two fields are most often enough for starting e.g. a movie or music without the tv on.
     
    • Thank You! Thank You! x 1
  11. FreakyJ
    • Team MediaPortal

    FreakyJ Development Group

    Joined:
    July 25, 2010
    Messages:
    4,021
    Likes Received:
    839
    Gender:
    Male
    Ratings:
    +1,424 / 1
    Home Country:
    Germany Germany
    I don't know if this is possible with MP2, I just started to work with the GUI this week, but I will take a look into the CurrentModule tomorrow :)
     
    • Like Like x 1
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!