Difference between revisions of "Camera.start"

From GiderosMobile
Line 6: Line 6:
 
(number), (number) = camera.start(texture,device)
 
(number), (number) = camera.start(texture,device)
 
</source>
 
</source>
'''texture''': (Texture) The texture to render camera stream into ''''''<br/>
+
=== Parameters ===
 +
'''texture''': (Texture) The texture to render camera stream into <br/>
 
'''device''': (string) The camera to use or nil to use the default one '''optional'''<br/>
 
'''device''': (string) The camera to use or nil to use the default one '''optional'''<br/>
 +
=== Return values ===
 
'''Returns''' (number) Nominal width of camera images<br/>
 
'''Returns''' (number) Nominal width of camera images<br/>
 
'''Returns''' (number) Nominal height of camera images<br/>
 
'''Returns''' (number) Nominal height of camera images<br/>

Revision as of 11:45, 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