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/>
'''<translate>Supported platforms</translate>:''' [[File:Platform android.png]][[File:Platform ios.png]][[File:Platform mac.png]][[File:Platform pc.png]]<br/>
+
'''Available since:''' Gideros 2017.10<br/>
'''<translate>Available since</translate>:''' Gideros 2017.10<br/>
 
  
 
=== Description ===
 
=== Description ===
Line 22: Line 20:
 
| style="width: 50%; vertical-align:top;"|
 
| style="width: 50%; vertical-align:top;"|
 
=== Methods ===
 
=== Methods ===
<!-- [[Special:MyLanguage/Theora.new|Theora.new]] ''<translate>Creates a new Ogg/Theora object.</translate>''<br/> -->
+
[[Theora.new]] ''creates a new Ogg/Theora object''<br/><!--GIDEROSMTD:Theora.new(path) creates a new Ogg/Theora object-->
<!-- GIDEROSMTD:Theora.new(path) Creates a new Ogg/Theora object. -->
 
  
 
| style="width: 50%; vertical-align:top;"|
 
| style="width: 50%; vertical-align:top;"|

Revision as of 01:19, 2 March 2023

Supported platforms: Platform android.pngPlatform ios.pngPlatform mac.pngPlatform pc.png
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)

Methods

Theora.new creates a new Ogg/Theora object

Events

Constants