Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
lucasgonze
Visitor

Re: External Control of Netflix channel?

This JS template code may be handy for hacking:


/*
* deviceIP: IP address of a Roku on your local network with MOG installed.
*
* tracks: array of MOG track IDs. You can get these back from
* EchoNest APIs or look around on mog.com for them, for example by
* using the search function.
*/
function MOGRoku(deviceIP,tracks){
var productionProgramID = "2049"; // if you're using a production MOG build
var programID = productionProgramID; // set which one you're using by modifying this

var form = document.createElement("form");
form.method = "post";
form.action = "http://"+deviceIP+":8060/launch/"+programID+"?trackIDs="+tracks.join("+");
form.submit();
}

$(document).ready(function() {
$("a#playone").click(function(){
MOGRoku("192.168.201.49",[5639969]);
});
$("a#playmulti").click(function(){
MOGRoku("192.168.201.49",[5639969,13203815,18362895,10936097,287941,539503,34731947]);
});
$("input#tidsubmit").click(function(){
MOGRoku("192.168.201.49",$("input#trackIDs").val().split(" "));
});
});
0 Kudos
whaleface
Visitor

Re: External Control of Netflix channel?

thanks for the info gonzotek, and I'm glad you have gotten some use out of the extension! the app ID for the official channel looks to be 2136, higher than the beta channel's one which was 2049. do you get a new app ID when you release a new version? I put in a box for setting the app ID in the options in case that's true. I'm going to push the extension out to the main forum and see if there's any interest in it.
0 Kudos
RokuKevin
Visitor

Re: External Control of Netflix channel?

He would get a new app id if his beta channel is a different channel than is published channel.

The app ids are set when the channel is created and different versions of that app have an "_xx" appended.

--Kevin
0 Kudos