Get now playing info and other such stuff (1 Viewer)

JustGav

New Member
December 20, 2007
4
0
Hi,

Been using mediaportal for a good while now and I have integrated it nicely with EventGhost complete with such things as voice control and sending network commands to shutdown the system.

I'm now looking at taking it to the next level and want to provide my media network with feedback such as what is playing on each system. Using something such as xPL to broadcast round the network is the easy part however I'm unable to find a way of extracting the 'Current playing media' as well as the state such as 'paused/playing'

Anybody have an idea of there is an xPL or an enhanced EG plugin available. Or failing that a way to extract the data into one or the other.

Thanks

Gav
 

gemx

Retired Team Member
  • Premium Supporter
  • October 31, 2006
    1,972
    539
    Home Country
    Germany Germany
    Just write a simple process plugin for MP and you get all the info that you need.
    You can then pass this over the network in whatever format you wish
     

    JustGav

    New Member
    December 20, 2007
    4
    0
    Excellent, cheers for that.

    I'm an infrastructure person not much of a programmer (well, it has been 15 years almost..delphi and the like), but I will work it out and post up the rests.

    My plan is to use EG for certain triggers and xPL to push messages round the network :)

    Gav
     

    JustGav

    New Member
    December 20, 2007
    4
    0
    Okay, I have had a look through ipimp and definitely seems to tick the right boxes with regards the process plugin, and I've had a quick look through the code with my limited understanding, and I get that it uses port 55667 (tcp) by default, but is there any info on the type of messages or the message format for making the requests.
     

    cheezey

    Community Plugin Dev
    August 26, 2004
    1,560
    312
    55
    West Yorks, UK
    Home Country
    United Kingdom United Kingdom
    I use JSON for communications between the iPiMP app and the client plugin.

    A now playing request looks like
    [collapse]{
    "action" : "nowplaying",
    "filter" : "",
    "value" : "",
    "start" : "0",
    "pagesize" : "0",
    "shuffle" : false,
    "enqueue" : false,
    "tracks" : ""
    }
    [/collapse]

    A typical response looks like (this one is playing a video)
    [collapse]
    {
    "media" : "video",
    "title" : "Blades of Glory",
    "tagline" : "Kick Some Ice",
    "id" : "35",
    "genre" : "Comedy",
    "filename" : "Blades Of Glory (2007).avi",
    "duration" : "5362.56",
    "position" : "315.9390625"
    }
    [/collapse]

    or for music
    [collapse]
    {
    "media" : "music",
    "album" : "Razorlight",
    "artist" : "Razorlight",
    "title" : "In The Morning",
    "genre" : "Indie",
    "track" : "1",
    "duration" : "223.111836734694",
    "position" : "4.71072562358277"
    }
    [/collapse]
     

    Users who are viewing this thread

    Top Bottom