1# moving_photo_capi.h 2 3 4## Overview 5 6Provides the APIs related to moving photos. 7 8You can use the APIs to obtain moving photo information. 9 10**System capability**: SystemCapability.FileManagement.PhotoAccessHelper.Core 11 12**Library**: libmedia_asset_manager.so 13 14**File to include**: <multimedia/media_library/moving_photo_capi.h> 15 16**Since**: 13 17 18**Related module**: [MediaAssetManager](_media_asset_manager.md) 19 20 21## Summary 22 23 24### Functions 25 26| Function| Description| 27| -------- | -------- | 28| [MediaLibrary_ErrorCode](_media_asset_manager.md#medialibrary_errorcode) [OH_MovingPhoto_GetUri](_media_asset_manager.md#oh_movingphoto_geturi) ([OH_MovingPhoto](_media_asset_manager.md#oh_movingphoto) \*movingPhoto, const char \*\*uri) | Obtains the URI of a moving photo. | 29| [MediaLibrary_ErrorCode](_media_asset_manager.md#medialibrary_errorcode) [OH_MovingPhoto_RequestContentWithUris](_media_asset_manager.md#oh_movingphoto_requestcontentwithuris) ([OH_MovingPhoto](_media_asset_manager.md#oh_movingphoto) \*movingPhoto, char \*imageUri, char \*videoUri) | Requests the image data and video data of a moving photo and writes them to the specified URIs, respectively. | 30| [MediaLibrary_ErrorCode](_media_asset_manager.md#medialibrary_errorcode) [OH_MovingPhoto_RequestContentWithUri](_media_asset_manager.md#oh_movingphoto_requestcontentwithuri) ([OH_MovingPhoto](_media_asset_manager.md#oh_movingphoto) \*movingPhoto, [MediaLibrary_ResourceType](_media_asset_manager.md#medialibrary_resourcetype) resourceType, char \*uri) | Requests the moving photo content of the specified resource type and writes it to the specified URI. | 31| [MediaLibrary_ErrorCode](_media_asset_manager.md#medialibrary_errorcode) [OH_MovingPhoto_RequestContentWithBuffer](_media_asset_manager.md#oh_movingphoto_requestcontentwithbuffer) ([OH_MovingPhoto](_media_asset_manager.md#oh_movingphoto) \*movingPhoto, [MediaLibrary_ResourceType](_media_asset_manager.md#medialibrary_resourcetype) resourceType, const uint8_t \*\*buffer, uint32_t \*size) | Requests the moving photo content of the specified resource type and returns it in ArrayBuffer format. | 32| [MediaLibrary_ErrorCode](_media_asset_manager.md#medialibrary_errorcode) [OH_MovingPhoto_Release](_media_asset_manager.md#oh_movingphoto_release) ([OH_MovingPhoto](_media_asset_manager.md#oh_movingphoto) \*movingPhoto) | Releases an [OH_MovingPhoto](_media_asset_manager.md#oh_movingphoto) instance. | 33