# wx.openVideoEditor(Object object)
Start from base library version 2.12.0. Please remaining backward compatible.
with Promise style call: Not supported
Mini Program plugin: Support, need to Mini Program base library version no less than 2.15.0
Open Video Editor
# parameter
# Object object
| attribute | type | Default values | Required | Introductions |
|---|---|---|---|---|
| filePath | string | yes | Path to video source, local path only supported | |
| 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.success callback
# parameter
# Object res
| attribute | type | Introductions |
|---|---|---|
| duration | number | Length of clip generated video file, in milliseconds |
| size | number | The size of the video file generated after the clip, in bytes |
| tempFilePath | string | Temporary paths to edited generated video files |
| tempThumbPath | string | Temporary path to the thumbnail file generated after editing |