INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Webremote and Playbackinfo  (Read 1425 times)

ChrisRainman

  • Regular Member
  • Galactic Citizen
  • ****
  • Posts: 306
  • nothing more to say...
Webremote and Playbackinfo
« on: December 11, 2010, 07:15:44 am »

1. Are there plans to extend the set of fields available when accessing MediaCenter by webremote?

The PlaybackInfo tag allows to display artist and album plus some more. I miss further fields like rating or the track counter in playing now.

2. Is it possible to update fields by webremote? Like rating or Genre.

3. Would it also be possible to display / update user fields ?
Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42052
  • Shoes gone again!
Re: Webremote and Playbackinfo
« Reply #1 on: December 11, 2010, 10:06:57 am »

The PlaybackInfo tag allows to display artist and album plus some more. I miss further fields like rating or the track counter in playing now.

You can get full MPL for any file using a search on the file's key.

For example:
http://192.168.0.100:52199/MCWS/v1/Files/Search?Action=mpl&Query=[Key]=[62706]


Quote
2. Is it possible to update fields by webremote? Like rating or Genre.

Yes.  You can use MCWS/v1/File/SetInfo.


Quote
3. Would it also be possible to display / update user fields ?

The functions above support all fields.

Thanks.
Logged
Matt Ashland, JRiver Media Center

ChrisRainman

  • Regular Member
  • Galactic Citizen
  • ****
  • Posts: 306
  • nothing more to say...
Re: Webremote and Playbackinfo
« Reply #2 on: December 13, 2010, 04:12:22 pm »

That sounds great...

but I have no idea how to integrate that in the playingnow.html files ?
I searched in the forum but did find nothing helpful.

Is this to be done like this: <a href="javascript:download_refresh('MCWS/v1/Playback/Next?Token=[Token]')... ?

Would be great if you can give an example for a mpl query how a command needs to look like in ajax.
Logged

ChrisRainman

  • Regular Member
  • Galactic Citizen
  • ****
  • Posts: 306
  • nothing more to say...
Re: Webremote and Playbackinfo
« Reply #3 on: December 15, 2010, 05:09:03 pm »

You can get full MPL for any file using a search on the file's key.

For example:
http://192.168.0.100:52199/MCWS/v1/Files/Search?Action=mpl&Query=[Key]=[62706]

Can anybody give me a hint on how to set this up within webremote html files?
Logged

ChrisRainman

  • Regular Member
  • Galactic Citizen
  • ****
  • Posts: 306
  • nothing more to say...
Re: Webremote and Playbackinfo
« Reply #4 on: December 17, 2010, 03:24:00 am »

I need to give it one more try:

Matt, it's good to see that I can query all field values. So far, I was not able to understand how to integrate that http-string into the webremote files like playingnow.html.
I played around with it but with no success. Maybe you can give me a short example how to perform such a query in these files?

Thanks.
Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42052
  • Shoes gone again!
Re: Webremote and Playbackinfo
« Reply #5 on: December 17, 2010, 04:08:52 pm »

I need to give it one more try:

Matt, it's good to see that I can query all field values. So far, I was not able to understand how to integrate that http-string into the webremote files like playingnow.html.
I played around with it but with no success. Maybe you can give me a short example how to perform such a query in these files?

Thanks.

Sorry, but I'm not much help.  We use a pretty standard REST-type interface and XML responses, so if you Google, hopefully you'll find some tutorials for doing web services with javascript.
Logged
Matt Ashland, JRiver Media Center
Pages: [1]   Go Up