Skip to content

Instantly share code, notes, and snippets.

Created August 1, 2012 12:46
Show Gist options
  • Save anonymous/3226540 to your computer and use it in GitHub Desktop.
Save anonymous/3226540 to your computer and use it in GitHub Desktop.
iViewer - Append text from Crestron Kaleidescape module
CF.userMain = function(){
CF.watch(CF.JoinChangeEvent, "s19", doAppend) //this is the join in the iViewer SIMPL module, declare it in a page you never flip to
}
var appended = ""
function doAppend(join, value, tokens){
var regex = /\xFE\x02/;
if (regex.test(value)) {
appended += value.slice(2, value.length);
CF.setJoin("s1000", appended, false); //this is the actual Video Details Text join in your GUI
}
else {
appended = value;
CF.setJoin("s1000", appended, false);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment