May 18, 2021 WeChat Mini Program Development Document
The base library 2.11.0 starts to support, and the lower version needs to be compatible.
Get video details.
Property | Type | The default | Required | Description |
---|---|---|---|---|
Src | string | Is | The video file path can be between a temporary file path and a permanent file path | |
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) |
Property | Type | Description |
---|---|---|
orientation | string | The orientation of the screen |
type | string | Video format |
duration | number | The length of the video |
size | number | Video size, kB |
height | number | The length of the video, in px |
width | number | The width of the video, in px |
Fps | number | Video frame rate |
bitrate | number | Video code rate in kbps |
The legal value of res.orientation
Value | Description | The lowest version |
---|---|---|
up | Default | |
down | 180 degree rotation | |
left | Rotate 90 degrees counterclockwise | |
right | Rotate 90 degrees clockwise | |
up-mirrored | Same up, but flipped horizontally | |
down-mirrored | Same down, but flipped horizontally | |
left-mirrored | Same as loft, but flipped vertically | |
right-mirrored | same right, but flipped vertically |