22.12.2013 Views

Roku Object Reference - imaginArt

Roku Object Reference - imaginArt

Roku Object Reference - imaginArt

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

oVideoPlayer<br />

A Video Player is used to playback video files (using the generic ifMediaTransport Interface). If the<br />

message port is set, the object will send events of type roVideoEvent. All object calls are asynchronous.<br />

That is, video playback is handled in another thread from the script. The script will continue to run while<br />

video is playing. Decoded video will be scaled to the output resolution specified by roVideoMode.<br />

NOTE:<br />

• Currently only MPEG2 files are supported by BrightSign<br />

• On the HD110, HD210, HD410, HD810, and HD1010, only MPEG2 transport streams are<br />

supported. Audio can be either AC3 or MP3, however AC3 audio will currently not be decoded on<br />

the BrightSign – its raw data will be sent out over HDMI.<br />

• On the HD2000, only MPEG2 program streams are supported. Simple elementary video streams<br />

are not supported. A video stream must be muxed into a program stream. Audio can be either AC3<br />

or PCM.<br />

Interfaces:<br />

• ifSetMessagePort<br />

SetPort(obj As <strong>Object</strong>)As Void<br />

• ifAudioControl – see roAudioPlayer for docs<br />

• ifVideoControl<br />

SetViewMode(mode As Integer) As Boolean<br />

SetRectangle(r As roRectangle) As Void<br />

• ifMediaTransport<br />

PlayFile(filename As String) As Boolean<br />

PlayStaticImage(filename As String) As Boolean<br />

Stop() As Boolean<br />

Play() As Boolean<br />

SetLoopMode(mode As Integer) As Boolean<br />

ClearEvents() As Boolean<br />

AddEvent(userdata As Integer, time_in_ms As Integer) As Boolean<br />

StopClear()As Boolean<br />

If you wish to use a view mode different from the default, it must be set prior to starting video<br />

playback.<br />

view_mode values:<br />

0 - Scale to fill (default). The aspect ratio can alter.<br />

1 - Letterboxed and centered. The aspect ratio is maintained and the video has black borders.<br />

2 - Fill screen and centered. The aspect ratio is maintained and the screen is filled.<br />

To display the video in a zone, SetRectangle() must be called. EnableZoneSupport() must be<br />

called to use zones functionality.<br />

MPEG2 video files are encoded with a specific aspect ratio, and output display resolutions have an aspect<br />

ratio. Video display modes 1 and 2 use these aspect ratios to ensure that the video file aspect ratio is<br />

preserved when it is displayed. The only time that this will fail is when a widescreen monitor displays a 4:3<br />

output resolution such as 800x600 across the whole screen i.e. the monitor doesn't respect the aspect ratio.<br />

Please note that this feature relies on the correct aspect ratio marking of the MPEG2 video files.<br />

Unfortunately, not all files are marked correctly.<br />

12

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!