Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

WeChat small program API camera monitor


May 18, 2021 WeChat Mini Program Development Document


Table of contents


CameraFrameListener

CameraContext.onCameraFrame() returns the listener.


Method:

CameraFrameListener.start(Object object)

Start listening for frame data

Parameters

Object object

Property Type The default Required Description
success function Whether The interface calls a successful callback function
fail function Whether The interface calls the failed callback function
complete function Whether Callback function at end of interface call (call succeeds, fails are executed)


CameraFrameListener.stop(Object object)

Stop listening to frame data

Parameters

Object object

Property Type The default Required Description
success function Whether The interface calls a successful callback function
fail function Whether The interface calls the failed callback function
complete function Whether Callback function at end of interface call (call succeeds, fails are executed)