Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Panel
borderColor#3D3D3D
bgColor#F4F4F4
titleColor#3D3D3D
borderWidth0
titleBGColor#3D3D3D
borderStylesolid

ON THIS PAGE

Table of Contents
indent20px

Insert excerpt
BrightScript Version Navigation Menu
BrightScript Version Navigation Menu
nopaneltrue
BrightSign players use a standardized library of BrightScript objects to expose functionality for software development. To publish a new API for interacting with BrightSign hardware, we create a new BrightScript object. 

The pages in this section provide definitions for objects that can be used in BrightScript. A brief description, a list of interfaces, and the member functions of the interfaces are provided for each object class. While most BrightScript objects have self-contained pages, some objects are grouped on the same page if they are closely related or depend on one another for functionality.

Here is a sample of objects that are used frequently when creating applications in BrightScript:

roVideoModeConfigures video output and interacts with displays using CEC/EDID.
roRectangleUsed to define zones/widgets on the screen. This object is passed to many other objects to define their screen area, including roVideoPlayerroImagePlayer, roImageWidgetroHtmlWidgetroClockWidget, and roCanvasWidget.
roVideoPlayerPlays video files, streams, and HDMI input.
roImagePlayerDisplays images.
roHtmlWidgetDisplays local or remote HTML content using the Chromium rendering engine.
roNetworkConfigurationUsed to configure Ethernet, WiFi, and local network parameters.
roDeviceInfoUsed to retrieve a wide array of system information, including model type, device serial number, and firmware version.

...

  1. An object of the type roMessagePort is created by the script.
  2. Objects that can send events (i.e. those that support the ifMessagePort/ifSetMessagePort interface) are instructed to send their events to this message port using the SetPort() method. You can set up multiple message ports and have each event go to its own message port, but it is usually simpler to create one message port and have all the events sent to this one port.
  3. The script waits for an event . The actual function to do this is ifMessagePort.WaitMessage(), but using the built-in in Wait() statement in BrightScript allows you to do this more easily(or the ifMessagePort.WaitMessage() method).
  4. If multiple object instances are assigned to the same message port, your the script should determine determines from which instance the event originated, then process processes it. The script then jumps back to the Wait() statement.

...