convertVideoToGif
Requires:
BizKit≥4.25.0@ray-js/ray≥1.7.76
Platforms:
iOSAndroid
Method signature
convertVideoToGif(params: )Minimum SDK versions
- iOS
ThingSmartBizKitBizBundle - ≥ 7.5.0
- Android
com.thingclips.smart:thingsmart-bizbundle-bizkit - ≥ 7.5.0
Description
Convert video to GIF
Parameters
| Property | Type | Required | Description | Minimum SDK versions |
|---|---|---|---|---|
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 | Minimum SDK versions |
|---|---|---|---|
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