# CameraContext

CameraContext Example, you can use the wx.createCameraContext Get.

CameraContext And unique within the page camera Component binding, the corresponding camera Component.

# method

# CameraFrameListener CameraContext.onCameraFrame(onCameraFrameCallback callback)

Obtain Camera Real-time frame data

# CameraContext.takePhoto(Object object)

Taking photos

# CameraContext.setZoom(Object object)

Set Zoom Level

# CameraContext.startRecord(Object object)

Start recording.

# CameraContext.stopRecord(Object object)

End Video

# sample code

Preview with Developer Tool