Constructors
constructor
- new Camera(config: any): Camera
-
Parameters
Properties
css
css: CameraStyle
format
height
height: string | number
img
img: any
isBack
isBack: boolean = true
onSnapScript
onSnapScript: string
options
uploadUrl
uploadUrl: string
Private webcam
webcam: any
width
width: string | number
Methods
Protected doDestory
-
Returns void
doGetClassName
-
Returns any
doGetCss
-
Returns CameraStyle
getAttrEditors
- getAttrEditors(): AttributeEditorBase[]
-
Returns AttributeEditorBase[]
Protected init
-
Returns void
onSnap
-
Parameters
Returns void
render
- render(parentCmp?: ComponentBase): void
-
Parameters
-
Optional parentCmp: ComponentBase
Returns void
set
-
Parameters
Returns void
setup
-
Returns void
snapshot
-
Parameters
Returns void
snapshotAndUpload
-
Parameters
Returns void
stop
-
Returns void
switch
-
Returns void
upload
-
Parameters
-
Optional imgBase64: string
-
Returns void
H5摄像头组件 手机,平板 浏览器调用摄像头