home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
MediaPortal 1
Support
Input / Output interfaces
other Input / Output interfaces
Get now playing info and other such stuff
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="cheezey" data-source="post: 566987" data-attributes="member: 10350"><p>I use JSON for communications between the iPiMP app and the client plugin. </p><p></p><p>A now playing request looks like </p><p>[collapse]{ </p><p> "action" : "nowplaying",</p><p> "filter" : "",</p><p> "value" : "",</p><p> "start" : "0",</p><p> "pagesize" : "0",</p><p> "shuffle" : false,</p><p> "enqueue" : false,</p><p> "tracks" : ""</p><p>}</p><p>[/collapse]</p><p></p><p>A typical response looks like (this one is playing a video)</p><p>[collapse]</p><p>{ </p><p> "media" : "video",</p><p> "title" : "Blades of Glory",</p><p> "tagline" : "Kick Some Ice",</p><p> "id" : "35",</p><p> "genre" : "Comedy",</p><p> "filename" : "Blades Of Glory (2007).avi",</p><p> "duration" : "5362.56",</p><p> "position" : "315.9390625"</p><p>}</p><p>[/collapse]</p><p></p><p>or for music</p><p>[collapse]</p><p>{ </p><p> "media" : "music",</p><p> "album" : "Razorlight",</p><p> "artist" : "Razorlight",</p><p> "title" : "In The Morning",</p><p> "genre" : "Indie",</p><p> "track" : "1",</p><p> "duration" : "223.111836734694",</p><p> "position" : "4.71072562358277"</p><p>}</p><p>[/collapse]</p></blockquote><p></p>
[QUOTE="cheezey, post: 566987, member: 10350"] 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] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Support
Input / Output interfaces
other Input / Output interfaces
Get now playing info and other such stuff
Contact us
RSS
Top
Bottom