# saveVideoToPhotosAlbum(Object object)

Saves videos to the system album.
**Notice**：Notes:
- User authorization on `scope.writePhotosAlbum` is required before calling this API from **iOS and Android**. To learn about authorization, see [API Permissions](https://open.feishu.cn/document/uYjL24iN/uITMuITMuITM).

## Support

App capability | Android | iOS | PC | Harmony | Preview
---|---|---|---|---|---
Gadget | **✓** | **✓** | **✓** | V7.35.0+ | Preview
Web app | V3.44.0+ | V3.44.0+ | V3.47.0+ | V7.35.0+ | Preview

## Input

Inherits [standard object input](https://open.feishu.cn/document/uYjL24iN/ukzNy4SO3IjL5cjM), and has the following extension properties:

Name | Data type | Required | Default value | Description
---|---|---|---|---
filePath | string | Yes | &nbsp; | Video file path. Network addresses are not supported.<br>**Example value**: ttfile://temp/1637482384392.mp4

## Output

Inherits [standard object output](https://open.feishu.cn/document/uYjL24iN/ukzNy4SO3IjL5cjM#8c92acb8), without extension property

##  Sample code

```js

tt.saveVideoToPhotosAlbum({
  filePath: 'ttfile://temp/uHQa5KPuS4tzOAK.MP4',//Local video path
  success(res) {
    console.log(res);
  },
  fail(res) {
    console.log(`saveVideoToPhotosAlbum failed`);
  }
});

```

Sample return object for `success`:
```json
{
    "errMsg": "saveVideoToPhotosAlbum:ok"
}
```
