Player APIs (BrightScript & Ja...
...
Object Reference
Input/Output Objects
roIRTransmitter
4min
this object supports sending arbitrary remote control infrared remote control codes using the nec, rc5, or phc (pronto hex controls) protocols the javascript equivalent is bsirtransmitter docid\ og4yl3pefza5nkgkbgblv object creation the roirtransmitter is created with an associate array createobject("roirtransmitter", config as roassociativearray) the associative array can contain the following parameter destination a string value indicating the connector that will be used to output the signal "ir out" the 3 5mm ir output connector (available on xdx30 models) or 3 5mm ir input/output connector (available on 4kx42 and xdx32 models) "iguana" the iguanaworks http //iguanaworks net/ ir transceiver system software will not prevent you from generating both an roirtransmitter instance set to "ir out" and an roirreceiver instance set to "ir in" (i e configuring the 3 5mm ir connector for input and output at the same time) however, input/output performance will not be reliable ifmessageport setport(message port object as object) as void posts event messages to the attached message port 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 ifirtransmitter getfailurereason() as string send(protocol as string, code as dynamic) as boolean sends the specified code using the output destination set during object creation the system currently supports two ir transmission protocols "nec" and "phc" ( roirremote docid\ s84mpe1r1qj7aehgoajhh ) this method returns true if the code was successfully transmitted, but there is no way to determine from brightscript if the controlled device actually received it asyncsend(protocol as string, code as dynamic) as boolean sends the specified code and generates an roirtransmitcompleteevent object upon completion the system currently supports two ir transmission protocols "nec" and "phc" ( roirremote docid\ s84mpe1r1qj7aehgoajhh ) this method is only supported using the ir out destination