processPetForegroundMediaByTemplate(params: Object)
Requires:
AIKit≥1.4.3@ray-js/ray≥1.7.27
Platforms:
iOSAndroid
Description
Compose pet foreground media based on a template
Parameters
| Property | Type | Required | Description |
|---|---|---|---|
| Yes | Template object | ||
mediaSource | string | Yes | Input media data source |
| No | Output configuration | ||
| No | Extended parameters | ||
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 |
|---|---|---|
outputPath | string | Path of the output foreground media |
| Extension data |
fail callback parameters
| Property | Type | Description |
|---|---|---|
errorMsg | string | Error message |
errorCode | string | number | Error code |
| Error extension |
Return Value
None