saveVideoToPhotosAlbum(params: Object)
Requires:
BaseKit≥2.5.0@ray-js/ray≥0.5.9
Platforms:
iOSAndroid
Description
Save video to the system photo album. Supports MP4 format and requires album permission
Parameters
| Property | Type | Required | Default | Description | BaseKit Since |
|---|---|---|---|---|---|
filePath | string | Yes | - | Video file path; can be a temporary or permanent file path (local path) | - |
modifyCreationDate | boolean | No | false | Whether to modify the video's creation date Default: false (do not modify). true: set the video's creation date to the current save time | v3.16.0 |
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 | BaseKit Since |
|---|---|---|---|
localIdentifier | string | Album video identifier | v3.14.0 |
fail callback parameters
| Property | Type | Description |
|---|---|---|
errorMsg | string | Error message |
errorCode | string | number | Error code |
| Error extension |
Return Value
None