From 0995ee628cce53bdaf02c5da2b49e9821cfe7b48 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Sun, 28 May 2017 12:58:20 +0200 Subject: [PATCH] Write about video signal numbers. --- video.rst | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/video.rst b/video.rst index cdef8f1..4e7c41e 100644 --- a/video.rst +++ b/video.rst @@ -61,6 +61,15 @@ moving the new file atomically into place, you could end up corrupting the file Nageru is playing from, causing it to automatically rewind before the end of the segment. +Videos are assigned an arbitrary signal number when loaded. Whenever you need +to refer to this signal number (say, to get its width or height for display), +you should use *video:get_signal_num()*. Like any other signal, videos have +a width and height, an interlaced flag (currently always false), a frame rate +(which can vary during playback) and has_signal/is_connected member functions. +The former is always true, but the former will be false if the video isn't +currently playing for whatever reason (e.g., the file is corrupted, or a network +stream is broken and hasn't reconnected yet). + Controlling video playback -------------------------- -- 2.39.2