From cc4c801be4c5a44d3639261a0f16b8b2c2786c14 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Sat, 20 Jul 2019 10:16:36 +0200 Subject: [PATCH] Update video inputs for 1.9.0. --- video.rst | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/video.rst b/video.rst index 12e32e3..ee2c1b5 100644 --- a/video.rst +++ b/video.rst @@ -44,18 +44,13 @@ or, for a network stream, perhaps:: local video = VideoInput.new("http://localhost/file.nut", Nageru.VIDEO_FORMAT_BGRA) -It can then be added to any chain like this:: +It can then be display on an input like usual:: - local input = chain:add_video_input(video, false) + input:display(video) -The second parameter specifies no deinterlacing. Note that interlaced video -is currently not supported, not even with deinterlacing, so this parameter -must always be false. - -You can use the same video object to create many different video inputs:: - - local input1 = chain1:add_video_input(video, false) - local input2 = chain2:add_video_input(video, false) +Note that interlaced video is currently not supported, not even with deinterlacing. +(Before Nageru 1.9.0, video inputs were distinct from live inputs, and had to +be created differently, but this is no longer the case.) Videos run in the correct frame rate and on their own timer (generally the system clock in the computer), and loop when they get to the end or whenever an -- 2.39.2