convertVideoToGif(params: Object)
Requires:
BizKit≥4.25.0@ray-js/ray≥1.7.76
Platforms:
iOSAndroid
Description
Convert video to GIF
Parameters
| Property | Type | Required | Description |
|---|---|---|---|
videoFilePath | string | Yes | path Path to the video file |
width | number | No | width Width |
height | number | No | height Height |
frameRate | number | Yes | frameRate Frame rate (frames extracted per second) |
startTime | number | No | startTime Start time in seconds |
durationTime | number | No | duration Duration in seconds |
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 |
|---|---|---|
path | string | Video-to-GIF output GIF file path |
fail callback parameters
| Property | Type | Description |
|---|---|---|
errorMsg | string | Error message |
errorCode | string | number | Error code |
| Error extension |
Return Value
None