This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
built_in:cameraview [2015/10/22 10:57] stevegarman [Table] |
built_in:cameraview [2016/06/24 21:13] (current) |
||
---|---|---|---|
Line 100: | Line 100: | ||
cam = app.CreateCameraView( 0.8, 0.4 ); | cam = app.CreateCameraView( 0.8, 0.4 ); | ||
+ | | ||
+ | cam.SetOnReady( cam_OnReady ); | ||
+ | | ||
lay.AddChild( cam ); | lay.AddChild( cam ); | ||
- | setTimeout( " | ||
app.AddLayout( lay ); | app.AddLayout( lay ); | ||
+ | } | ||
+ | |||
+ | // Runs after " | ||
+ | function cam_OnReady() { | ||
+ | cam.StartPreview(); | ||
} | } | ||
</ | </ |