BrightScript Objects Reference#

This section provides reference documentation for BrightScript objects available on BrightSign players.

Object Categories#

Media Playback#

ObjectDescription
roVideoPlayerVideo playback control
roAudioPlayerAudio playback control
roImagePlayerImage display
roVideoModeDisplay resolution and settings

User Interface#

ObjectDescription
roHtmlWidgetHTML5 content display
roTextWidgetSimple text display
roRectangleScreen region definition
roImageWidgetImage display widget

Networking#

ObjectDescription
roUrlTransferHTTP/HTTPS requests
roNetworkConfigurationNetwork interface configuration
roStreamSocketTCP socket connections
roDatagramSocketUDP communication

File System#

ObjectDescription
roReadFileFile reading
roCreateFileFile writing
roSyncSpecJSON/XML configuration parsing
roStorageInfoStorage device information

Hardware#

ObjectDescription
roControlPortGPIO control
roSerialPortSerial communication
roI2CI2C bus interface
roTouchScreenTouch input handling

System#

ObjectDescription
roDeviceInfoDevice information
roSystemTimeTime and timezone
roRegistrySectionPersistent storage
roMessagePortEvent handling

Common Patterns#

Creating Objects#

' Basic object creation
player = CreateObject("roVideoPlayer")

' With parameters
serial = CreateObject("roSerialPort", 0, 9600)

' Validation
if type(player) <> "roVideoPlayer" then
    print "Failed to create video player"
    stop
end if

Event Handling#

Sub Main()
    msgPort = CreateObject("roMessagePort")

    player = CreateObject("roVideoPlayer")
    player.SetPort(msgPort)

    player.PlayFile("video.mp4")

    while true
        msg = wait(0, msgPort)
        if type(msg) = "roVideoEvent" then
            if msg.GetInt() = 8 then  ' MediaEnded
                print "Video finished"
            end if
        end if
    end while
End Sub

Full Documentation#

For complete object documentation, see the BrightSign API Reference.

Player Compatibility
SeriesAll
Firmware8.0+