Created
August 1, 2012 12:46
-
-
Save anonymous/3226540 to your computer and use it in GitHub Desktop.
iViewer - Append text from Crestron Kaleidescape module
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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