Player APIs (BrightScript & Ja...
...
Object Reference
Input/Output Objects
roCecInterface
10min
this object provides access to the hdmi® cec channel object creation the rocecinterface object can be created with no parameters if the interface is on hdmi 1 createobject("rocecinterface") if the user wants to use cec on other hdmi ports, they must specify the port name during object creation, where possible values for port are hdmi 1 , hdmi 2 , hdmi 3 , hdmi 4 , hdmi in createobject("rocecinterface", port as string) when possible, javascript apis should be used instead of brightscript javascript objects the javascript api equivalent to this object is cec docid\ sgfokqfxwmjxxofs13htk ifcecinterface sendrawmessage(packet as robytearray) as void sends a message on the cec bus the frame data should be provided as an robytearray , with the destination address in the low 4 bits of the first octet the system software automatically replaces the high 4 bits of the first octet with the source address it also copies the physical address of the player into the following messages automatically prior to transmission activesource, inactivesource, systemaudiomoderequest as of brightsign os 8 2 55, the cec implementation for au series 5 products will reply to these messages with the correct data, without involving the script cec msg get cec version cec msg abort cec msg give device power status cec msg give osd name cec msg give device vendor id cec msg give features cec msg give physical addr cec msg user control pressed cec msg user control released cec msg report physical addr use the useinitiatoraddressfrompacket() method to prevent the system software from replacing source bits useinitiatoraddressfrompacket(enable as boolean) as boolean removes the source address included in cec messages by system software if passed true this method allows you to transmit unmodified bytes via cec getlogicaladdress() as integer returns the current logical address this method will return the unregistered address (0x0f) to indicate that the logical address has not been negotiated in this case, messages can still be sent, but the receivers will behave differently and may not process all messages enablececdebug(filename as string) as void enables cec debugging this method will write a log of all cec packets to the specified file getphysicaladdress() as robytearray returns the cec physical address, which is sometimes required when processing cec messages portname () optional this can be default the default output for the platform, normally hdmi 1 hdmi x x is a number from 1 up to the number of hdmi outputs on the platform earc on the au335 (the default) ifuserdata setuserdata(user data as object) sets the user data that will be returned when events are raised getuserdata() as object returns the user data that has previously been set via setuserdata() it will return invalid if no data has been set ifmessageport setport(port as romessageport) posts messages of type rocecrxframeevent and rocectxcompleteevent to the attached message port