Difference between revisions of "Ogg"
From GiderosMobile
(Created page with "__NOTOC__ <!-- GIDEROSOBJ:Ogg --> '''<translate>Supported platforms</translate>:''' File:Platform android.pngFile:Platform ios.pngFile:Platform mac.pngFile:Pla...") |
|||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
− | |||
<!-- GIDEROSOBJ:Ogg --> | <!-- GIDEROSOBJ:Ogg --> | ||
− | + | '''Supported platforms:''' [[File:Platform android.png]][[File:Platform ios.png]][[File:Platform mac.png]][[File:Platform pc.png]]<br/> | |
− | ''' | + | '''Available since:''' Gideros 2017.10<br/> |
− | ''' | ||
=== Description === | === Description === | ||
Line 22: | Line 20: | ||
| style="width: 50%; vertical-align:top;"| | | style="width: 50%; vertical-align:top;"| | ||
=== Methods === | === Methods === | ||
− | + | [[Theora.new]] ''creates a new Ogg/Theora object''<br/><!--GIDEROSMTD:Theora.new(path) creates a new Ogg/Theora object--> | |
− | <!-- GIDEROSMTD:Theora.new(path) | ||
| style="width: 50%; vertical-align:top;"| | | style="width: 50%; vertical-align:top;"| |
Revision as of 00:19, 2 March 2023
Supported platforms:
Available since: Gideros 2017.10
Description
Adds support for Ogg audio and Theora video.
Example
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)
MethodsTheora.new creates a new Ogg/Theora object |
EventsConstants |