so the next question is coming, and this is what i really wanted to do in the end how can i achieve a view comparable to the theatre view in windows (that can be customised at will) in the Mac version. this through the web remote or in a client of MC itself !!!!
The thing i do not understand is MCWS, i can not find anything in the doc about calling Tags
The issue i am having now is that the MPL is saved to a local file is there anyway i could make it behave like the info command ?
by the way, i suppose that the xml's generated by the other commands are stored somewhere on the "webserver" cna you indicate where this is ?
// invoke the service and when the data is ready process it. $.get( "[LibraryServerLink]/MCWS/v1/File/GetInfo?File=6679382&Action=MPL&Token=[Token]", function( data ) { // if everything is ok the local variable data gets filled with the MPL (which is XML) var convertedInDOM = $(data) // convertInDOM contains a DOM structure that represents the XML document. ... now it's up to you to use the content }); |
?File=6679382 should this not be a variable ?Yes, it has to be. It's just an example.
function send_once(score) {
document.location.href="MCWS/v1/File/SetInfo?File="+ filekey + "&FileType=Key&Field=Rating&Value="+score + "&Token=" + g_token;
}
This works fine, the score is send to the Rating tag in MC. The PROBLEM is that the result is the response page so i thought i had the solution by immediately adding :function send_once(score) {
document.location.href="MCWS/v1/File/SetInfo?File="+ filekey + "&FileType=Key&Field=Rating&Value="+score + "&Token=" + g_token;
document.location.href="playingnow.html";
}