Theora.core.getVideoInfo
From GiderosMobile
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)