Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Version published after converting to the new editor


Panel
borderColor#3D3D3D
bgColor#F4F4F4
titleColor#3D3D3D
borderWidth0
titleBGColor#3D3D3D
borderStylesolid

ON THIS PAGE

Table of Contents
indent20px

This object allows playback of HDMI® input or video provided by a video capture dongle. Note that the ifVideoInput methods do not apply to HDMI input, which can be achieved by passing an unmodified roVideoInput instance to the roVideoPlayer.PlayFile() method (see below for examples). The JavaScript equivalent is MediaDevices.getUserMedia().

Object Creation: roVideoInput is created with no parameters:

...

GetCurrentFormat() As String


...


This script uses the HDMI Input as the video source to create a full-screen display.

Code Block
v = CreateObject("roVideoPlayer")
i = CreateObject("roVideoInput")
p = CreateObject("roMessagePort")


vm = CreateObject("roVideoMode")
vm.SetMode("1920x1080x60p")


r = CreateObject("roRectangle", 0, 0, 1920, 1080)
v.SetRectangle(r)


v.PlayFile(i)

...