Difference between revisions of "Theora:getVideo"

From GiderosMobile
(Created page with "__NOTOC__ '''Available since:''' Gideros 2017.10<br/> '''Class:''' Ogg<br/> === Description === Reads the video of an Ogg/Theora stream object as a Sprite. <syntaxhighlig...")
 
(No difference)

Latest revision as of 08:02, 26 August 2024

Available since: Gideros 2017.10
Class: Ogg

Description

Reads the video of an Ogg/Theora stream object as a Sprite.

(Sprite) = TheoraStream:getVideo()

Return values

Returns (Sprite) Theora Stream as a Sprite

Example

A Video Sprite

Theora = require "Theora"
local videoSource = Theora.new("videos/file_example_OGG_480_1_7mg.ogg")
local videoStream = videoSource:play()
local videoSprite = videoStream:getVideo()
videoSprite:setPosition(0, 64)
stage:addChild(videoSprite)