# CameraContext.startRecord(Object object)
with Promise style call: Supported
Mini Program plugin: Support
Start recording.
# parameter
# Object object
attribute | type | Default values | Required | Introductions |
---|---|---|---|---|
timeoutCallback | function | no | Over 30 s or pages onHide When it ends. | |
success | function | no | Interface calls the successful callback function | |
fail | function | no | Interface calls failed callback functions | |
complete | function | no | Callback function at the end of an interface call (both successful and unsuccessful calls are executed) |
# object.timeoutCallback callback
# parameter
# Object res
attribute | type | Introductions |
---|---|---|
tempThumbPath | string | Temporary path to cover image file (Local path) |
tempVideoPath | string | Temporary path to a file for a video (Local path) |