[Remote] - Now Playing Info

Discussion in 'Improvement Suggestions' started by brentonjames, April 17, 2010.

  1. brentonjames

    brentonjames Portal Member

    Joined:
    April 16, 2007
    Messages:
    30
    Likes Received:
    0
    Location:
    Adelaide
    Ratings:
    +0 / 0
    Home Country:
    Hi,

    I actually tried asking this question elsewhere a couple of weeks ago but got no responses, hopefully this is a more appropriate section.

    I have several wireless touch screen UMPCs, running both CE and XP, I use these to run both x10 and MediaPortal (through simulated button presses). I use software which has a limited ability to interface with other applications.

    What I would like to see is now playing information, and or have database access to MediaPortal, through the interface I built using this software (HSTouch connected to Homeseer).

    One way would be to somehow retrieve this information from MediaPortal and populate the elements it provides. While this would seem to be the most secure, and direct method, I have no idea where to start.

    A much more simple option would (I believe after having a look at the skinners manual) be to set up some sort of local web server which displays this info- which I could then imbed in my software.



    The thing is that that seems such a simple idea, that I imagine if it can be done, it already has, what with UMPCs selling now days for less than you used to pay for a medium priced remote.

    Is anyone aware of any sort of plug-in that makes internal information available externally, preferably in a html format? Or has anyone played with this idea at all, that might be able to offer a starting point for me?

    Thanks
     
  2. Google AdSense Guest Advertisement



    to hide all adverts.
  3. brentonjames

    brentonjames Portal Member

    Joined:
    April 16, 2007
    Messages:
    30
    Likes Received:
    0
    Location:
    Adelaide
    Ratings:
    +0 / 0
    Home Country:
    Hi,

    Can no one give me a hint how to interact with MP from an outside program. Surely I can't be the only one who has ever wanted to display now playing info on an external device. Or make sure that commands that were sent, were received and acted on.

    I have been looking around this board for weeks now and I have to admit it seems I may be the only one.

    Is it possible to pay to have specific plug-ins built?

    Thanks
     
  4. cheezey

    cheezey Community Plugin Dev

    Joined:
    August 26, 2004
    Messages:
    1,560
    Likes Received:
    315
    Occupation:
    Technical architect
    Location:
    West Yorks, UK
    Ratings:
    +315 / 0
    Home Country:
    United Kingdom United Kingdom
  5. brentonjames

    brentonjames Portal Member

    Joined:
    April 16, 2007
    Messages:
    30
    Likes Received:
    0
    Location:
    Adelaide
    Ratings:
    +0 / 0
    Home Country:
    Hi
    Thanks, I think.

    Not sure though why you have posted this link. Unless I am missing somthing this plug-in seems to be to stream content on the server computer.

    I want to be able to control the server computer, and most importantly, display now playing info, artist, progress, that sort of thing, on the computer I am controling it with.

    That plug-in does not seem to be designed to achieve that...

    Thanks
     
  6. cheezey

    cheezey Community Plugin Dev

    Joined:
    August 26, 2004
    Messages:
    1,560
    Likes Received:
    315
    Occupation:
    Technical architect
    Location:
    West Yorks, UK
    Ratings:
    +315 / 0
    Home Country:
    United Kingdom United Kingdom
    You're correct it doesn't. I have written a process plugin which does though, I use it with the iPiMP web app to allow clients to be controlled through a Smartphone web interface, you could reuse that if you are OK diving into it's code to discover its interfaces. The source code for the client plugin is here.
     
  7. brentonjames

    brentonjames Portal Member

    Joined:
    April 16, 2007
    Messages:
    30
    Likes Received:
    0
    Location:
    Adelaide
    Ratings:
    +0 / 0
    Home Country:
    Hey

    Thanks that is pretty cool.

    Ok so look, I don't know what you do for a living, or how much time you spend on this sort of stuff- and I really don't want to offend...

    I am lazy, VB is not my thing and it would take me ages to sort out what I want to do- is there any way I could just offer to pay you something to tailor your plug-in to work with Homeseer??

    Thanks
     
  8. cheezey

    cheezey Community Plugin Dev

    Joined:
    August 26, 2004
    Messages:
    1,560
    Likes Received:
    315
    Occupation:
    Technical architect
    Location:
    West Yorks, UK
    Ratings:
    +315 / 0
    Home Country:
    United Kingdom United Kingdom
    No offence taken.

    Firstly I'll state that I'm not an application developer by trade, I'm purely a hobbyist (which is probably obvious by looking at the code and the fact it's VB :) ). And unfortunately that means that what time I have available (which isn't a lot) is used to further develop and support iPiMP. So I'll have to decline your offer, sorry.

    I have tried to make the client plugin reusable though, I updated it to communicate using JSON so that others could use it, you basically send a command (like "nowplaying") in JSON format and you'll get a resopnse back in JSON format. What I don't have is a definitive list of commands, parameters and responses.

    The key file to look at is MPClientController.vb. You'll see the commands accepted in there, some cammands expect parameters (e.g. "getmovingpicture" expects the movieID number), but you'll have to dig into the code to discover those.

    Similarly the responses returned are undocumented but are easy to find e.g. NowPlaying.vb will show you what is returned in the JSON response to the "nowplaying" command.

    I hope you get what you need from this.
     
  9. brentonjames

    brentonjames Portal Member

    Joined:
    April 16, 2007
    Messages:
    30
    Likes Received:
    0
    Location:
    Adelaide
    Ratings:
    +0 / 0
    Home Country:
    Hi

    Thanks for that.

    I have only used c and java before, vb I have of course heard of but never written, and JSON is totaly new. in other words I may have a bit of a learning curve ahead:confused:.

    Still thanks for the start, if I can find some time it will definitly give me a good leg up.

    Regards,
     
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!