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...")
 
m (Text replacement - "</source>" to "</syntaxhighlight>")
 
(2 intermediate revisions by 2 users not shown)
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 10: Line 8:
  
 
=== Example ===
 
=== Example ===
<source lang="lua">
+
<syntaxhighlight lang="lua">
 
Theora=require "Theora"
 
Theora=require "Theora"
 
local videoSource = Theora.new("videos/file_example_OGG_480_1_7mg.ogg")
 
local videoSource = Theora.new("videos/file_example_OGG_480_1_7mg.ogg")
Line 17: Line 15:
 
videoSprite:setPosition(0, 64)
 
videoSprite:setPosition(0, 64)
 
stage:addChild(videoSprite)
 
stage:addChild(videoSprite)
</source>
+
</syntaxhighlight>
  
 
{|-
 
{|-
 
| 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;"|

Latest revision as of 15:31, 13 July 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