How to pass over camera parameter?

I want to use the camera function in the app, but I don't know how to pass over the parameters.

var camera='luna://com.webos.service.camera2/getCameraList';
var camerapar='{}';

var cameraopen='luna://com.webos.service.camera2/open';
var cameraopenpar='{"id":"camera1"}';

bridge.call(camera,camerapar);
bridge.call(cameraopen,cameraopenpar);
var camerapreview='luna://com.webos.service.camera2/startPreview'; 
var camerapreviewpar='{ "handle":3917, "params": {"type":"sharedmemory","source":"0"}}';
bridge.call(camerapreview,camerapreviewpar);

I tried in this way, but I'm having a difficulty delivering the handle parameters, how can I solve it?

@ANIAN_ahn
Refer to this code snippet. you will need a callback function