saveVideoToPhotosAlbum
Requires:
BaseKit≥2.5.0@ray-js/ray≥0.5.9
Platforms:
iOSAndroid
Method signature
saveVideoToPhotosAlbum(params: )Minimum SDK versions
- iOS
ThingSmartBaseKitBizBundle - ≥ 5.2.1
- Android
com.thingclips.smart:thingsmart-bizbundle-basekit - ≥ 5.2.0
Description
Save video to the system photo album. Supports MP4 format and requires album permission
Parameters
| Property | Type | Required | Default | Description | BaseKit Since | Minimum SDK versions |
|---|---|---|---|---|---|---|
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 | Minimum SDK versions |
|---|---|---|---|---|
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