# How to pass over camera parameter?

**URL:** <https://forum.webosose.org/t/how-to-pass-over-camera-parameter/1532>\
**Category:** Univ Colllab - Christ Univ\
**Created:** [August 2, 2021, 1:45pm UTC](https://forum.webosose.org/t/how-to-pass-over-camera-parameter/1532 "2021-08-02T13:45:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ANIAN\_ahn](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.webosose.org/anian_ahn/32/535_2.png) [@ANIAN\_ahn](https://forum.webosose.org/u/ANIAN_ahn)\
**Post date:** [August 2, 2021, 1:45pm UTC](https://forum.webosose.org/t/how-to-pass-over-camera-parameter/1532/1 "2021-08-02T13:45:23Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![charleskelvin](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.webosose.org/charleskelvin/32/563_2.png) [@charleskelvin](https://forum.webosose.org/u/charleskelvin)\
**Post date:** [August 3, 2021, 8:42am UTC](https://forum.webosose.org/t/how-to-pass-over-camera-parameter/1532/2 "2021-08-03T08:42:08Z")

</div>

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

> **[Developing Built-in Web Apps](https://www.webosose.org/docs/tutorials/web-apps/developing-built-in-web-apps/#source-code)**
>
> Note The content of this page is based on webOS OSE 2.0. If you are developing on webOS OSE 1.x, you might notice differences in the project directory structure, log messages, etc. Notes indicating such differences are provided where necessary. To...
