INTERACT FORUM

Please login or register.

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

Author Topic: Web interface  (Read 5230 times)

Urfalo

  • Recent member
  • *
  • Posts: 15
Web interface
« on: June 17, 2009, 01:49:53 am »

I'm developing a plugin for Crestron to comunicate with the Jrivers web interface. Is there any protocol information, or any specific guidelines where it is explained how to implement the HHTP protocol?
Logged

JimH

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 72436
  • Where did I put my teeth?
Re: Web interface
« Reply #1 on: June 17, 2009, 06:51:25 am »

See the DevZone link for help.

It would be good if you did it for version 14, not for 12.

A week or so ago, a new interface was added to Library Server -- "Added web service interface (REST based) to library server.  Use the URL [library server address]/MCWS/v1/doc or [library server address]/MCWS/v1/wsdl to see documentation. (still a work in progress)"

We have a board here for developers:

http://yabb.jriver.com/interact/index.php?board=6.0
Logged

Urfalo

  • Recent member
  • *
  • Posts: 15
Re: Web interface
« Reply #2 on: June 17, 2009, 05:35:51 pm »

I didn't find these folders in MC12. What my problem is: If I write GET view?location=Media+Library\n\n , the web server doesn't respond, but the control functions work like GET view?location=Controls&action=play_pause\n\n.
Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42372
  • Shoes gone again!
Re: Web interface
« Reply #3 on: June 17, 2009, 06:41:39 pm »

You're referring to the old "Remote Server".

With Media Center 14, a newer REST interface is incorporated into Library Server.  I recommend you build on this.  Jim posted a few more details, like how to get the documentation from it.

As you need functions, let us know and we can incorporate them into the new interface of Media Center 14.
Logged
Matt Ashland, JRiver Media Center

Urfalo

  • Recent member
  • *
  • Posts: 15
Re: Web interface
« Reply #4 on: June 18, 2009, 09:10:09 am »

Now I have downloaded MC14. And started the webserver an library server, but i cant find the documentation in the abowe links. ?
Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42372
  • Shoes gone again!
Re: Web interface
« Reply #5 on: June 18, 2009, 09:12:36 am »

[Edit by JimH -- You must first start Library Server in MC.  If you are running Media Server, this will still be available even after you exit MC.  See our Wiki entry on Servers for more about this. ]

You visit the server in a web browser to see the documentation:
http://[library server address]/MCWS/v1/doc

If you're on the same computer as the server, you can probably use:
http://localhost:80/MCWS/v1/doc
Logged
Matt Ashland, JRiver Media Center

Urfalo

  • Recent member
  • *
  • Posts: 15
Re: Web interface
« Reply #6 on: June 18, 2009, 02:09:16 pm »

Installed the MC14 on a new clean computer, then it worked :)
Logged

JimH

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 72436
  • Where did I put my teeth?
Re: Web interface
« Reply #7 on: June 18, 2009, 02:10:25 pm »

It's possible that you had Media Server from MC13 running on the first PC.
Logged

Urfalo

  • Recent member
  • *
  • Posts: 15
Re: Web interface
« Reply #8 on: June 18, 2009, 03:55:16 pm »

I had it, but uninstalled it before installing MC14. How do I post these commands? I get in responce HTTP/1.1 501 SERVER ERROR......
Logged

JimH

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 72436
  • Where did I put my teeth?
Re: Web interface
« Reply #9 on: June 18, 2009, 04:20:17 pm »

That sounds like the wrong server, but make sure Library Server is started.
Logged

Urfalo

  • Recent member
  • *
  • Posts: 15
Re: Web interface
« Reply #10 on: June 19, 2009, 01:08:44 am »

Im using the same address and port where I find MCWS/v1/doc. From Crestron where im trying to talk with MC14, there is no formating in what I send. So if i send <?xml version="1.0" encoding="UTF-8" standalone="yes" ?> , this is whath the libary server recives. Like when I send to the web server, I cant youst write the weblink,  i have to write GET "command" \n\n
Logged

Urfalo

  • Recent member
  • *
  • Posts: 15
Re: Web interface
« Reply #11 on: June 21, 2009, 06:05:10 am »

When I sending: http://10.0.0.2:81/MCWS/v1/Playback/Pause?State=-1&Zone=-1&ZoneType=id , the MC pause the music, but when I sendig /MCWS/v1/Playback/Pause?State=-1&Zone=-1&ZoneType=id thru a tcp/ip client connected to the server on port 81 I get server error. I have tryed with GET, POST, PUT in front of the command, an with an without line feed behind. Anyone know the exact command internet explorer send to the server?
Logged

kanebullen

  • Recent member
  • *
  • Posts: 8
Re: Web interface
« Reply #12 on: August 16, 2009, 11:38:44 pm »

When I sending: http://10.0.0.2:81/MCWS/v1/Playback/Pause?State=-1&Zone=-1&ZoneType=id , the MC pause the music, but when I sendig /MCWS/v1/Playback/Pause?State=-1&Zone=-1&ZoneType=id thru a tcp/ip client connected to the server on port 81 I get server error. I have tryed with GET, POST, PUT in front of the command, an with an without line feed behind. Anyone know the exact command internet explorer send to the server?

Probably too late to help you, but maybe try adding a HTTP/1.0 at the end of the line, ending with a carriage return:

"GET  /MCWS/v1/Playback/Pause?State=-1&Zone=-1&ZoneType=id HTTP/1.0"

Kane
Logged
Pages: [1]   Go Up