Camera component for mp
Example
bxml
Code
json
Code
- remark - supported jssdk >= 4.11.0
- remark - inorder to put other components behinds camera, camera component should set z-index to -1 and page background-color to transparent
Props
| Name | Type | Description | Default |
| ----------------- | -------- | ----------- | ----------------------------- | ---------------------------------- | --------------------------- | -------- |
| resolution | 'low' | 'medium' | 'high' | preview resolution, default medium | "medium" |
| device-position | 'front' | 'back' | camera position, default back | "back" |
| flash | 'auto' | 'on' | 'off' | 'torch' | is open flash, default auto | "auto" |
Was this page helpful?
Last modified on