Panel | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||
ON THIS PAGE
|
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) |
...