Theora.core.getVideoInfo

From GiderosMobile
Revision as of 22:13, 13 November 2026 by MoKaLux (talk | contribs) (Created page with "__NOTOC__ '''Available since:''' Gideros 2017.10<br/> '''Class:''' Ogg<br/> === Description === Reads the properties of the video stream attached to a channel. <syntaxhig...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Available since: Gideros 2017.10
Class: Ogg

Description

Reads the properties of the video stream attached to a channel.

(table) = theora.core.getVideoInfo(streamId)

Parameters

streamId: (number) the id returned by channel:getStreamId()

Return values

Returns (table) width, height, surfaceWidth, surfaceHeight, fps, format, or nil if the stream has no video

width and height are the coded size of the video frame, while surfaceWidth and surfaceHeight are the size of the decoded Y plane (they can be larger because of block padding).

Example

local info = theora.core.getVideoInfo(channel:getStreamId())
print(info.width, info.height, info.fps, info.format)