Zones (hd2000 only) – BrightSign HD2000 Object Reference Manual User Manual

Page 6

Advertising
background image

Zones (HD2000 only)

With the BrightSign Zones feature, you can divide the screen into rectangles and play different content in
each rectangle.

A zone can contain video and images, images, a clock, or text. There can be only one video zone per
screen. However, there can be multiple of other types of zones on the screen. A text zone can contain
simple text strings or can be configured to display an RSS feed in a ticker type display.

To enable zone functionality, the following global function must be called in the script:

rotVOID EnableZoneSupport(rotBOOL enable)

When zones are enabled, the image layer is always on top of the video layer. When zones are not enabled,
the image layer is hidden whenever video is played, and the video layer is hidden whenever images are
played.

Example:
This script creates 5 zones. The first one contains a video player, the next two contain image players, the
fourth has a clock widget and the last is a text widget. The objects used in this example are explained in
subsequent sections of this document.


debug =

true

v=CreateObject(

"roVideoMode"

)

v.SetMode(

"1920x1080x60i"

)

EnableZoneSupport(

true

)


r=CreateObject(

"roRectangle"

, 60, 60, 1386, 800)

v=CreateObject(

"roVideoPlayer"

)

v.SetRectangle(r)
v.SetLoopMode(1)
v.SetViewMode(2)
v.SetAudioOutput(2)
v.PlayFile(

"Amazon_1080.mpg"

)


i1=CreateObject(

"roImagePlayer"

)

i1.SetDefaultMode(3)
r=CreateObject(

"roRectangle"

, 100, 100, 285, 123)

i1.SetRectangle(r)
i1.DisplayFile(

"splash_master.png"

)


i2=CreateObject(

"roImagePlayer"

)

i2.SetDefaultMode(2)
r=CreateObject(

"roRectangle"

, 1520, 155, 300, 300)

i2.SetRectangle(r)
ok=i2.DisplayFile(

"museum_ad1.jpg"

)

if

ok=0

then

i2.DisplayFile(

"museum_ad1.jpg"

)

endif

i3=CreateObject(

"roImagePlayer"

)

i3.SetDefaultMode(2)
r=CreateObject(

"roRectangle"

, 1520, 565, 300, 300)

i3.SetRectangle(r)
ok=i3.DisplayFile(

"museum_ad2.jpg"

)

if

ok=0

then

6

Advertising
This manual is related to the following products: