Player APIs (BrightScript & Ja...
BrightScript-JavaScript Object...
BSCECReceiver
5min
for more information about available methods, refer to the docid\ ezdh3by8iibwqky04obzu entry note that you can only use this javascript class to receive cec messages use docid\ ma pnb9n4i6nin ixnr0r to send cec messages the javascript equivalent is cec docid\ sgfokqfxwmjxxofs13htk events the following events are available on the bscecreceiver object they can receive an event of the type cecreceiverevent onececrxframe oncectxcomplete bscecreceiverevent – attributes readonly attribute int status readonly attribute domstring data bscecreceiverevent – methods arraybuffer getbytes() methods void close() shuts down the instance, preventing it from further consuming resources if this method is not called, garbage collection determines when the instance will be destroyed example \<script> function loadcec() { console log(" loadcec "); var cec in = new bscecreceiver(); cec in oncecrxframe = function(e){ console log('############ oncecrxframe ' + e data); } cec in oncectxcomplete = function(e){ console log('############ oncectxcomplete ' + e status); } } \</script>