clipVideo(params: Object)
Requires:
BaseKit≥3.14.2@ray-js/ray≥1.5.33
Platforms:
iOSAndroid
Description
Trim video
Parameters
| Property | Type | Required | Description |
|---|---|---|---|
filePath | string | Yes | Video file path; can be a temporary file path or a permanent file path (local path) |
startTime | number | Yes | Start time, in milliseconds |
endTime | number | Yes | End time, in milliseconds |
level | number | Yes | Target compressed resolution 1 - 480x854 Bitrate: 1572x1000 2 - 540x960 Bitrate: 2128x1000 3 - 720x1280 Bitrate: 3145x1000 4 - 1080x1920 Bitrate: 3500x1000 |
complete | () => void | No | Completion callback (executed on both success and failure) |
success | (params: Object) => void | No | Callback on successful API call |
fail | (params: Object) => void | No | Failure callback |
success callback parameters
| Property | Type | Description |
|---|---|---|
videoClipPath | string | Trimmed video path |
fail callback parameters
| Property | Type | Description |
|---|---|---|
errorMsg | string | Error message |
errorCode | string | number | Error code |
| Error extension |
Return Value
None