Difference between revisions of "Camera.start"

From GiderosMobile
(Created page with "__NOTOC__ '''Available since:''' Gideros 2017.8<br/> === Description === Start live streaming of camera images to the specified Texture. <source lang="lua"> (number) (number),...")
 
Line 4: Line 4:
 
Start live streaming of camera images to the specified Texture.
 
Start live streaming of camera images to the specified Texture.
 
<source lang="lua">
 
<source lang="lua">
(number) (number), = camera.start(texturedevice,)
+
(number), (number) = camera.start(texture,device)
 
</source>
 
</source>
'''texture:''' (Texture) The texture to render camera stream into ''''''<br/>
+
'''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/>
 
'''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 10:20, 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)

'texture: (Texture) The texture to render camera stream into '
device: (string) The camera to use or nil to use the default one optional
Returns (number) Nominal width of camera images
Returns (number) Nominal height of camera images