startDownloadMessageVideoForComposition(params: Object)
Requires:
IPCKit≥6.3.1@ray-js/ray≥1.7.30
Platforms:
iOSAndroid
Description
Video download; if there are multiple video files, they will be merged into a single video file
Parameters
| Property | Type | Required | Description |
|---|---|---|---|
deviceId | string | Yes | Device ID |
fileInfo | string | Yes | File information, JSON string {"fileInfo":[ { "fileUrl": "xxx1", "key": "media key 1" }, { "fileUrl": "xxx2", "key": "media key 2" }, { "fileUrl": "xxx3", "key": "media key 3" }] } |
savePath | number | Yes | Save path: 0 (default) — save to the phone gallery; 1 — save to the App gallery; 2 — save to both the phone gallery and the App gallery |
| No | Configuration options for video processing | ||
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 | IPCKit Since |
|---|---|---|---|
path | string | Save path after cloud storage download completes | - |
thingfilePath | string | file thingfilePath | v6.7.1 |
fail callback parameters
| Property | Type | Description |
|---|---|---|
errorMsg | string | Error message |
errorCode | string | number | Error code |
| Error extension |
Return Value
None