Roku Object Reference - imaginArt
Roku Object Reference - imaginArt
Roku Object Reference - imaginArt
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
oVideoInput()<br />
roVideoInput supports playing back video supplied by a video capture dongle.<br />
roVideoInput is created with no parameters:<br />
• Create<strong>Object</strong>("roVideoInput ")<br />
The ifVideoInput interface provides:<br />
• GetStandards() As roArray(String)<br />
• GetInputs() As roArray(String)<br />
o These return an array of strings describing the various inputs and video standards that the video<br />
capture device supports. Standards returned are PAL-D/K, PAL-G, PAL-H, PAL-I, PAL-D,<br />
PAL-D1, PAL-K, PAL-M, PAL-N, PAL-Nc, PAL-60, SECAM-B/G, , ECAM-B, SECAM-D,<br />
SECAM-G, SECAM-H, SECAM-K, SECAM-K1, SECAM-L, SECAM-LC, SECAM-D/K,<br />
NTSC-M, NTSC-Mj, NTSC-443, NTSC-Mk, PAL-B and PAL-B1. Inputs returned are s-<br />
video and composite.<br />
• SetStandard(As String) As Boolean<br />
• GetCurrentStandard() As String<br />
• SetInput(As String) As Boolean<br />
• GetCurrentInput() As String<br />
o Use the above to get and set the input and video standard.<br />
• GetControls() As roArray(String)<br />
o Returns the possible controls on the input. These include ‘Brightness’, ‘Contrast’,<br />
‘Saturation’, ‘Hue’, and others.<br />
• SetControlValue(control_name As String, value As Integer) As Boolean<br />
o Sets the value of the specified control<br />
• GetCurrentControlValue(control_name As String) As roAssociativeArray<br />
o Returns an associative array with 3 members: Value, Minimum and Maximum. Value is the<br />
current value, and the possible range is specified by minimum and maximum.<br />
Here is an example script that creates a full screen display with the video capture dongle as the video<br />
source.<br />
v=Create<strong>Object</strong>("roVideoPlayer")<br />
i=Create<strong>Object</strong>("roVideoInput")<br />
p=Create<strong>Object</strong>("roMessagePort")<br />
vm=Create<strong>Object</strong>("roVideoMode")<br />
vm.SetMode("1280x720x60p")<br />
r = Create<strong>Object</strong>("roRectangle", 0, 0, 1280, 720)<br />
v.SetRectangle(r)<br />
i.SetInput("s-video")<br />
i.SetStandard("ntsc-m")<br />
v.PlayEx(i)<br />
loop:<br />
60