Your Universal Remote Control Center
RemoteCentral.com
Philips Pronto Professional Forum - View Post
Previous section Next section Up level
Up level
The following page was printed from RemoteCentral.com:

Login:
Pass:
 
 

Topic:
JRiver media center
This thread has 10 replies. Displaying all posts.
Post 1 made on Thursday November 18, 2021 at 10:28
mpg7321
Regular Member
Joined:
Posts:
June 2020
111
Lyndel,

Have you played around with jRiver media center. May be interested in hiring you to create an interface. Mainly writing the scripts for feedback, I have IP control working using the Single Shoot Communication Plug-In.
Post 2 made on Friday November 19, 2021 at 18:35
Lyndel McGee
RC Moderator
Joined:
Posts:
August 2001
12,994
Nope, I have not. I don't think there's a 'Free' edition is there?

Do you have any documentation on the protocol? A vendor link perhaps?
Lyndel McGee
Philips Pronto Addict/Beta Tester
OP | Post 3 made on Friday November 19, 2021 at 19:13
mpg7321
Regular Member
Joined:
Posts:
June 2020
111
There is a free 30 day trial, with in the program under settings you can launch a local web page that list out all of there IP control.
OP | Post 4 made on Friday November 19, 2021 at 21:42
mpg7321
Regular Member
Joined:
Posts:
June 2020
111
so I have been playing around with some script and here is what I have so far.

function JRiver_Info(){
var socket = new TCPSocket();
socket.onConnect = function() {
var prefix = 'GET /MCWS/v1/Playback/Info?Zone=-1'
var postfix = ' HTTP/1.1\r\n\r\n'
try {
socket.write(prefix+postfix);
socket.write("HOST:+url+\r\n\r\n");
} catch(e) {
socket.close()
};
};
socket.onData = function() {
var info = socket.read();

var timeremaining = info.split('').pop().split('')[0];
var totaltime = info.split('').pop().split('')[0];
var artist = info.split('').pop().split('')[0];
var title = info.split('').pop().split('')[0];

GUI.widget("JRiver_Time_Remaining").label=timeremaining;
GUI.widget("JRiver_Total_Time").label=totaltime;
GUI.widget("JRiver_Artist").label=artist;
GUI.widget("JRiver_Title").label=title;
};
socket.close()
socket.onIOError = function(e) {
socket.close()
};
socket.connect(url, 52199, 500);
};

Question I have, I am sending the command ever 1.5 seconds, some times the parsed out data shows other time it shows like corrupted data. Any thoughts?
OP | Post 5 made on Friday November 19, 2021 at 21:42
mpg7321
Regular Member
Joined:
Posts:
June 2020
111
The corrupted data just flashes date and time for a moment and then back to the returned data


I just noticed the above script had an issue where this website wont let you use "<" ">"

parsing out looks like,

var timeremaining = info.split('"<"Item Name="RemainingTimeDisplay"">"').pop().split('"<"/Item">"')[0];

Last edited by mpg7321 on November 19, 2021 22:03.
Post 6 made on Friday November 19, 2021 at 22:57
Lyndel McGee
RC Moderator
Joined:
Posts:
August 2001
12,994
Well, is the output you are processing XML or a JSON response?

The code above is very, very fragile (bad socket coding as well as use of split/pop) and won't work reliably.

Capture the output from a web browser and send me a text file of the response to my email please. If you don't mind, can you also attach the simple config where you have the above code?

I would recommend that you abandon your use of roll-your-own script and move to using the Philips Http Library which can also process XML responses.
Lyndel McGee
Philips Pronto Addict/Beta Tester
Post 7 made on Friday November 19, 2021 at 23:13
Lyndel McGee
RC Moderator
Joined:
Posts:
August 2001
12,994
On November 19, 2021 at 19:13, mpg7321 said...
There is a free 30 day trial, with in the program under settings you can launch a local web page that list out all of there IP control.

I downloaded 32 bit version 28 and did not see a link under settings. Might you have more detail.

I have since uninstalled as I don't use Windows MCE or JRiver for media viewing.
Lyndel McGee
Philips Pronto Addict/Beta Tester
OP | Post 8 made on Saturday November 20, 2021 at 00:03
mpg7321
Regular Member
Joined:
Posts:
June 2020
111
Under options, Media Network,MCWS (web service), Open in Web Browser
Post 9 made on Sunday November 21, 2021 at 13:40
mattmarsden
Junior Member
Joined:
Posts:
January 2021
27
I would really like this too and would be happy to contribute financially
Post 10 made on Sunday November 21, 2021 at 15:53
Lyndel McGee
RC Moderator
Joined:
Posts:
August 2001
12,994
Matt/Mike - You've got mail!!!!
Lyndel McGee
Philips Pronto Addict/Beta Tester
Post 11 made on Sunday November 21, 2021 at 16:30
Lyndel McGee
RC Moderator
Joined:
Posts:
August 2001
12,994
For all who want JRiver, consider this. I just did a search on this site for all time and found < 30 threads that mention JRiver. I understand that it's a well established product but only having < 30 mentions on this site really concerns me as to the usability.

Also, JRiver has not kept up with the times as still only does XML over HTTP even though JSON has become the standard over the past 5 years. UPNP can be done but again, is likely XML format and is a very 'chatty' interface.

For those of you who might want Pronto functionality, building a Now Playing interface is rather easy. I built a crude one which I shared the configs with Mike/Matt that uses the Philips HTTP Library and about 350 lines of ProntoScript in 4-6 hours.

The code functions well but the user interface is far from a polished product.

Last edited by Lyndel McGee on November 22, 2021 01:16.
Lyndel McGee
Philips Pronto Addict/Beta Tester


Jump to


Protected Feature Before you can reply to a message...
You must first register for a Remote Central user account - it's fast and free! Or, if you already have an account, please login now.

Please read the following: Unsolicited commercial advertisements are absolutely not permitted on this forum. Other private buy & sell messages should be posted to our Marketplace. For information on how to advertise your service or product click here. Remote Central reserves the right to remove or modify any post that is deemed inappropriate.

Hosting Services by ipHouse