Player APIs (BrightScript & Ja...
BrightScript-JavaScript Object...
BSCECTransmitter
2min
for more information about available methods, refer to the docid\ ezdh3by8iibwqky04obzu entry note that you can only use this javascript class to send cec messages use docid 1wzsjlvarrwoppr9c dye to receive cec messages when possible, javascript apis should be used instead of brightscript javascript objects the javascript api equivalent to this object is cec docid\ sgfokqfxwmjxxofs13htk methods boolean sendrawmessage(in arraybuffer data) boolean sendrawmessage(in arraybufferview data) boolean sendrawmessage(in domstring data) 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 the following javascript example shows how to send a set of cec messages function cecdisplayon() { console log("### cecdisplayon ###"); var cec control = new bscectransmitter(); var buffer = new uint8array(2); buffer\[ 0 ] = 0x40; buffer\[ 1 ] = 0x0d; cec control sendrawmessage(buffer); } function cecdisplayoff() { console log("### cecdisplayoff ###"); var cec control = new bscectransmitter(); var buffer = new uint8array(2); buffer\[ 0 ] = 0x40; buffer\[ 1 ] = 0x36; cec control sendrawmessage(buffer); }