Difference between revisions of "Camera.start"

From GiderosMobile
Line 2: Line 2:
 
'''Available since:''' Gideros 2017.8<br/>
 
'''Available since:''' Gideros 2017.8<br/>
 
=== Description ===
 
=== Description ===
Start live streaming of camera images to the specified Texture.
+
<translate>Start live streaming of camera images to the specified Texture.</translate>
 
<source lang="lua">
 
<source lang="lua">
 
(number), (number) = camera.start(texture,device)
 
(number), (number) = camera.start(texture,device)
 
</source>
 
</source>
 
=== Parameters ===
 
=== Parameters ===
'''texture''': (Texture) The texture to render camera stream into <br/>
+
'''texture''': (Texture) <translate>The texture to render camera stream into</translate> <br/>
'''device''': (string) The camera to use or nil to use the default one '''optional'''<br/>
+
'''device''': (string) <translate>The camera to use or nil to use the default one</translate> '''optional'''<br/>
 
=== Return values ===
 
=== Return values ===
'''Returns''' (number) Nominal width of camera images<br/>
+
'''Returns''' (number) <translate>Nominal width of camera images</translate><br/>
'''Returns''' (number) Nominal height of camera images<br/>
+
'''Returns''' (number) <translate>Nominal height of camera images</translate><br/>

Revision as of 13:34, 23 August 2018

Available since: Gideros 2017.8

Description

Start live streaming of camera images to the specified Texture.

(number), (number) = camera.start(texture,device)

Parameters

texture: (Texture) The texture to render camera stream into
device: (string) The camera to use or nil to use the default one optional

Return values

Returns (number) Nominal width of camera images
Returns (number) Nominal height of camera images