1# JS API Changes of the Multimedia Subsystem 2 3The table below lists the APIs changes of the multimedia subsystem in OpenHarmony 3.2 Beta1 over OpenHarmony 3.1 Release. 4 5## API Changes 6 7| Module| Class| Method/Attribute/Enumeration/Constant| Change Type| 8|---|---|---|---| 9| ohos.multimedia.audio | AudioRenderer | on(type: 'interrupt', callback: Callback\<InterruptEvent>): void; | Added| 10| ohos.multimedia.audio | InterruptEvent | hintType: InterruptHint; | Added| 11| ohos.multimedia.audio | InterruptEvent | forceType: InterruptForceType; | Added| 12| ohos.multimedia.audio | InterruptEvent | eventType: InterruptType; | Added| 13| ohos.multimedia.audio | InterruptForceType | INTERRUPT_SHARE | Added| 14| ohos.multimedia.audio | InterruptForceType | INTERRUPT_FORCE = 0 | Added| 15| ohos.multimedia.camera | VideoOutputError | code: VideoOutputErrorCode; | Added| 16| ohos.multimedia.camera | VideoOutputErrorCode | ERROR_UNKNOWN = -1 | Added| 17| ohos.multimedia.camera | VideoOutput | on(type: 'error', callback: ErrorCallback\<VideoOutputError>): void; | Added| 18| ohos.multimedia.camera | VideoOutput | on(type: 'frameEnd', callback: AsyncCallback\<void>): void; | Added| 19| ohos.multimedia.camera | VideoOutput | on(type: 'frameStart', callback: AsyncCallback\<void>): void; | Added| 20| ohos.multimedia.camera | VideoOutput | release(callback: AsyncCallback\<void>): void;<br>release(): Promise\<void>; | Added| 21| ohos.multimedia.camera | VideoOutput | stop(callback: AsyncCallback\<void>): void;<br>stop(): Promise\<void>; | Added| 22| ohos.multimedia.camera | VideoOutput | start(callback: AsyncCallback\<void>): void;<br>start(): Promise\<void>; | Added| 23| ohos.multimedia.camera | camera | function createVideoOutput(surfaceId: string, callback: AsyncCallback\<VideoOutput>): void;<br>function createVideoOutput(surfaceId: string): Promise\<VideoOutput>; | Added| 24| ohos.multimedia.camera | PhotoOutputError | code: PhotoOutputErrorCode; | Added| 25| ohos.multimedia.camera | PhotoOutputErrorCode | ERROR_UNKNOWN = -1 | Added| 26| ohos.multimedia.camera | CaptureEndInfo | frameCount: number; | Added| 27| ohos.multimedia.camera | CaptureEndInfo | captureId: number; | Added| 28| ohos.multimedia.camera | FrameShutterInfo | timestamp: number; | Added| 29| ohos.multimedia.camera | FrameShutterInfo | captureId: number; | Added| 30| ohos.multimedia.camera | PhotoOutput | on(type: 'error', callback: ErrorCallback\<PhotoOutputError>): void; | Added| 31| ohos.multimedia.camera | PhotoOutput | on(type: 'captureEnd', callback: AsyncCallback\<CaptureEndInfo>): void; | Added| 32| ohos.multimedia.camera | PhotoOutput | on(type: 'frameShutter', callback: AsyncCallback\<FrameShutterInfo>): void; | Added| 33| ohos.multimedia.camera | PhotoOutput | on(type: 'captureStart', callback: AsyncCallback\<number>): void; | Added| 34| ohos.multimedia.camera | PhotoOutput | release(callback: AsyncCallback\<void>): void;<br>release(): Promise\<void>; | Added| 35| ohos.multimedia.camera | PhotoOutput | capture(callback: AsyncCallback\<void>): void;<br>capture(setting: PhotoCaptureSetting, callback: AsyncCallback\<void>): void;<br>capture(setting?: PhotoCaptureSetting): Promise\<void>; | Added| 36| ohos.multimedia.camera | PhotoCaptureSetting | rotation?: ImageRotation; | Added| 37| ohos.multimedia.camera | PhotoCaptureSetting | quality?: QualityLevel; | Added| 38| ohos.multimedia.camera | QualityLevel | QUALITY_LEVEL_LOW | Added| 39| ohos.multimedia.camera | QualityLevel | QUALITY_LEVEL_MEDIUM | Added| 40| ohos.multimedia.camera | QualityLevel | QUALITY_LEVEL_HIGH = 0 | Added| 41| ohos.multimedia.camera | ImageRotation | ROTATION_270 = 270 | Added| 42| ohos.multimedia.camera | ImageRotation | ROTATION_180 = 180 | Added| 43| ohos.multimedia.camera | ImageRotation | ROTATION_90 = 90 | Added| 44| ohos.multimedia.camera | ImageRotation | ROTATION_0 = 0 | Added| 45| ohos.multimedia.camera | camera | function createPhotoOutput(surfaceId: string, callback: AsyncCallback\<PhotoOutput>): void;<br>function createPhotoOutput(surfaceId: string): Promise\<PhotoOutput>; | Added| 46| ohos.multimedia.camera | PreviewOutputError | code: PreviewOutputErrorCode; | Added| 47| ohos.multimedia.camera | PreviewOutputErrorCode | ERROR_UNKNOWN = -1 | Added| 48| ohos.multimedia.camera | PreviewOutput | on(type: 'error', callback: ErrorCallback\<PreviewOutputError>): void; | Added| 49| ohos.multimedia.camera | PreviewOutput | on(type: 'frameEnd', callback: AsyncCallback\<void>): void; | Added| 50| ohos.multimedia.camera | PreviewOutput | on(type: 'frameStart', callback: AsyncCallback\<void>): void; | Added| 51| ohos.multimedia.camera | PreviewOutput | release(callback: AsyncCallback\<void>): void;<br>release(): Promise\<void>; | Added| 52| ohos.multimedia.camera | camera | function createPreviewOutput(surfaceId: string, callback: AsyncCallback\<PreviewOutput>): void;<br>function createPreviewOutput(surfaceId: string): Promise\<PreviewOutput>; | Added| 53| ohos.multimedia.camera | CaptureSessionError | code: CaptureSessionErrorCode; | Added| 54| ohos.multimedia.camera | CaptureSessionErrorCode | ERROR_UNKNOWN = -1 | Added| 55| ohos.multimedia.camera | CaptureSession | on(type: 'error', callback: ErrorCallback\<CaptureSessionError>): void; | Added| 56| ohos.multimedia.camera | CaptureSession | release(callback: AsyncCallback\<void>): void;<br>release(): Promise\<void>; | Added| 57| ohos.multimedia.camera | CaptureSession | stop(callback: AsyncCallback\<void>): void;<br>stop(): Promise\<void>; | Added| 58| ohos.multimedia.camera | CaptureSession | start(callback: AsyncCallback\<void>): void;<br>start(): Promise\<void>; | Added| 59| ohos.multimedia.camera | CaptureSession | removeOutput(previewOutput: PreviewOutput, callback: AsyncCallback\<void>): void;<br>removeOutput(previewOutput: PreviewOutput): Promise\<void>;<br>removeOutput(photoOutput: PhotoOutput, callback: AsyncCallback\<void>): void;<br>removeOutput(photoOutput: PhotoOutput): Promise\<void>;<br>removeOutput(videoOutput: VideoOutput, callback: AsyncCallback\<void>): void;<br>removeOutput(videoOutput: VideoOutput): Promise\<void>; | Added| 60| ohos.multimedia.camera | CaptureSession | removeInput(cameraInput: CameraInput, callback: AsyncCallback\<void>): void;<br>removeInput(cameraInput: CameraInput): Promise\<void>; | Added| 61| ohos.multimedia.camera | CaptureSession | addOutput(previewOutput: PreviewOutput, callback: AsyncCallback\<void>): void;<br>addOutput(previewOutput: PreviewOutput): Promise\<void>;<br>addOutput(photoOutput: PhotoOutput, callback: AsyncCallback\<void>): void;<br>addOutput(photoOutput: PhotoOutput): Promise\<void>;<br>addOutput(videoOutput: VideoOutput, callback: AsyncCallback\<void>): void;<br>addOutput(videoOutput: VideoOutput): Promise\<void>; | Added| 62| ohos.multimedia.camera | CaptureSession | addInput(cameraInput: CameraInput, callback: AsyncCallback\<void>): void;<br>addInput(cameraInput: CameraInput): Promise\<void>; | Added| 63| ohos.multimedia.camera | CaptureSession | commitConfig(callback: AsyncCallback\<void>): void;<br>commitConfig(): Promise\<void>; | Added| 64| ohos.multimedia.camera | CaptureSession | beginConfig(callback: AsyncCallback\<void>): void;<br>beginConfig(): Promise\<void>; | Added| 65| ohos.multimedia.camera | camera | function createCaptureSession(context: Context, callback: AsyncCallback\<CaptureSession>): void;<br>function createCaptureSession(context: Context): Promise\<CaptureSession>; | Added| 66| ohos.multimedia.camera | FocusState | FOCUS_STATE_UNFOCUSED | Added| 67| ohos.multimedia.camera | FocusState | FOCUS_STATE_FOCUSED | Added| 68| ohos.multimedia.camera | FocusState | FOCUS_STATE_SCAN = 0 | Added| 69| ohos.multimedia.camera | FocusMode | FOCUS_MODE_LOCKED | Added| 70| ohos.multimedia.camera | FocusMode | FOCUS_MODE_AUTO | Added| 71| ohos.multimedia.camera | FocusMode | FOCUS_MODE_CONTINUOUS_AUTO | Added| 72| ohos.multimedia.camera | FocusMode | FOCUS_MODE_MANUAL = 0 | Added| 73| ohos.multimedia.camera | FlashMode | FLASH_MODE_ALWAYS_OPEN | Added| 74| ohos.multimedia.camera | FlashMode | FLASH_MODE_AUTO | Added| 75| ohos.multimedia.camera | FlashMode | FLASH_MODE_OPEN | Added| 76| ohos.multimedia.camera | FlashMode | FLASH_MODE_CLOSE = 0 | Added| 77| ohos.multimedia.camera | CameraInputError | code: CameraInputErrorCode; | Added| 78| ohos.multimedia.camera | CameraInputErrorCode | ERROR_UNKNOWN = -1 | Added| 79| ohos.multimedia.camera | CameraInput | on(type: 'error', callback: ErrorCallback\<CameraInputError>): void; | Added| 80| ohos.multimedia.camera | CameraInput | on(type: 'focusStateChange', callback: AsyncCallback\<FocusState>): void; | Added| 81| ohos.multimedia.camera | CameraInput | release(callback: AsyncCallback\<void>): void;<br>release(): Promise\<void>; | Added| 82| ohos.multimedia.camera | CameraInput | setZoomRatio(zoomRatio: number, callback: AsyncCallback\<void>): void;<br>setZoomRatio(zoomRatio: number): Promise\<void>; | Added| 83| ohos.multimedia.camera | CameraInput | getZoomRatio(callback: AsyncCallback\<number>): void;<br>getZoomRatio(): Promise\<number>; | Added| 84| ohos.multimedia.camera | CameraInput | getZoomRatioRange(callback: AsyncCallback\<Array\<number>>): void;<br>getZoomRatioRange(): Promise\<Array\<number>>; | Added| 85| ohos.multimedia.camera | CameraInput | setFocusMode(afMode: FocusMode, callback: AsyncCallback\<void>): void;<br>setFocusMode(afMode: FocusMode): Promise\<void>; | Added| 86| ohos.multimedia.camera | CameraInput | getFocusMode(callback: AsyncCallback\<FocusMode>): void;<br>getFocusMode(): Promise\<FocusMode>; | Added| 87| ohos.multimedia.camera | CameraInput | isFocusModeSupported(afMode: FocusMode, callback: AsyncCallback\<boolean>): void;<br>isFocusModeSupported(afMode: FocusMode): Promise\<boolean>; | Added| 88| ohos.multimedia.camera | CameraInput | setFlashMode(flashMode: FlashMode, callback: AsyncCallback\<void>): void;<br>setFlashMode(flashMode: FlashMode): Promise\<void>; | Added| 89| ohos.multimedia.camera | CameraInput | getFlashMode(callback: AsyncCallback\<FlashMode>): void;<br>getFlashMode(): Promise\<FlashMode>; | Added| 90| ohos.multimedia.camera | CameraInput | isFlashModeSupported(flashMode: FlashMode, callback: AsyncCallback\<boolean>): void;<br>isFlashModeSupported(flashMode: FlashMode): Promise\<boolean>; | Added| 91| ohos.multimedia.camera | CameraInput | hasFlash(callback: AsyncCallback\<boolean>): void;<br>hasFlash(): Promise\<boolean>; | Added| 92| ohos.multimedia.camera | CameraInput | getCameraId(callback: AsyncCallback\<string>): void;<br>getCameraId(): Promise\<string>; | Added| 93| ohos.multimedia.camera | Size | width: number; | Added| 94| ohos.multimedia.camera | Size | height: number; | Added| 95| ohos.multimedia.camera | Camera | readonly connectionType: ConnectionType; | Added| 96| ohos.multimedia.camera | Camera | readonly cameraType: CameraType; | Added| 97| ohos.multimedia.camera | Camera | readonly cameraPosition: CameraPosition; | Added| 98| ohos.multimedia.camera | Camera | readonly cameraId: string; | Added| 99| ohos.multimedia.camera | ConnectionType | CAMERA_CONNECTION_REMOTE | Added| 100| ohos.multimedia.camera | ConnectionType | CAMERA_CONNECTION_USB_PLUGIN | Added| 101| ohos.multimedia.camera | ConnectionType | CAMERA_CONNECTION_BUILT_IN = 0 | Added| 102| ohos.multimedia.camera | CameraType | CAMERA_TYPE_TRUE_DEPTH | Added| 103| ohos.multimedia.camera | CameraType | CAMERA_TYPE_TELEPHOTO | Added| 104| ohos.multimedia.camera | CameraType | CAMERA_TYPE_ULTRA_WIDE | Added| 105| ohos.multimedia.camera | CameraType | CAMERA_TYPE_WIDE_ANGLE | Added| 106| ohos.multimedia.camera | CameraType | CAMERA_TYPE_UNSPECIFIED = 0 | Added| 107| ohos.multimedia.camera | CameraPosition | CAMERA_POSITION_FRONT | Added| 108| ohos.multimedia.camera | CameraPosition | CAMERA_POSITION_BACK | Added| 109| ohos.multimedia.camera | CameraPosition | CAMERA_POSITION_UNSPECIFIED = 0 | Added| 110| ohos.multimedia.camera | CameraStatusInfo | status: CameraStatus; | Added| 111| ohos.multimedia.camera | CameraStatusInfo | camera: Camera; | Added| 112| ohos.multimedia.camera | CameraManager | on(type: 'cameraStatus', callback: AsyncCallback\<CameraStatusInfo>): void; | Added| 113| ohos.multimedia.camera | CameraManager | createCameraInput(cameraId: string, callback: AsyncCallback\<CameraInput>): void;<br>createCameraInput(cameraId: string): Promise\<CameraInput>;<br>createCameraInput(position: CameraPosition, type: CameraType, callback: AsyncCallback\<CameraInput>): void;<br>createCameraInput(position: CameraPosition, type: CameraType): Promise\<CameraInput>; | Added| 114| ohos.multimedia.camera | CameraManager | getCameras(callback: AsyncCallback\<Array\<Camera>>): void;<br>getCameras(): Promise\<Array\<Camera>>; | Added| 115| ohos.multimedia.camera | CameraStatus | CAMERA_STATUS_UNAVAILABLE | Added| 116| ohos.multimedia.camera | CameraStatus | CAMERA_STATUS_AVAILABLE | Added| 117| ohos.multimedia.camera | CameraStatus | CAMERA_STATUS_DISAPPEAR | Added| 118| ohos.multimedia.camera | CameraStatus | CAMERA_STATUS_APPEAR = 0 | Added| 119| ohos.multimedia.camera | camera | function getCameraManager(context: Context, callback: AsyncCallback\<CameraManager>): void;<br>function getCameraManager(context: Context): Promise\<CameraManager>; | Added| 120| ohos.multimedia.image | ImageReceiver | release(callback: AsyncCallback\<void>): void;<br>release(): Promise\<void>; | Added| 121| ohos.multimedia.image | ImageReceiver | on(type: 'imageArrival', callback: AsyncCallback\<void>): void; | Added| 122| ohos.multimedia.image | ImageReceiver | readNextImage(callback: AsyncCallback\<Image>): void;<br>readNextImage(): Promise\<Image>; | Added| 123| ohos.multimedia.image | ImageReceiver | readLatestImage(callback: AsyncCallback\<Image>): void;<br>readLatestImage(): Promise\<Image>; | Added| 124| ohos.multimedia.image | ImageReceiver | getReceivingSurfaceId(callback: AsyncCallback\<string>): void;<br>getReceivingSurfaceId(): Promise\<string>; | Added| 125| ohos.multimedia.image | ImageReceiver | readonly format: ImageFormat; | Added| 126| ohos.multimedia.image | ImageReceiver | readonly capacity: number; | Added| 127| ohos.multimedia.image | ImageReceiver | readonly size: Size; | Added| 128| ohos.multimedia.image | Image | release(callback: AsyncCallback\<void>): void;<br>release(): Promise\<void>; | Added| 129| ohos.multimedia.image | Image | getComponent(componentType: ComponentType, callback: AsyncCallback\<Component>): void;<br>getComponent(componentType: ComponentType): Promise\<Component>; | Added| 130| ohos.multimedia.image | Image | readonly format: number; | Added| 131| ohos.multimedia.image | Image | readonly size: Size; | Added| 132| ohos.multimedia.image | Image | clipRect: Region; | Added| 133| ohos.multimedia.image | ImageSource | updateData(buf: ArrayBuffer, isFinished: boolean, value: number, length: number): Promise\<void>;<br>updateData(buf: ArrayBuffer, isFinished: boolean, value: number, length: number, callback: AsyncCallback\<void>): void; | Added| 134| ohos.multimedia.image | ImageSource | modifyImageProperty(key: string, value: string): Promise\<void>;<br>modifyImageProperty(key: string, value: string, callback: AsyncCallback\<void>): void; | Added| 135| ohos.multimedia.image | image | function createImageReceiver(width: number, height: number, format: number, capacity: number): ImageReceiver; | Added| 136| ohos.multimedia.image | image | function CreateIncrementalSource(buf: ArrayBuffer): ImageSource; | Added| 137| ohos.multimedia.image | InitializationOptions | scaleMode?: ScaleMode; | Added| 138| ohos.multimedia.image | InitializationOptions | alphaType?: AlphaType; | Added| 139| ohos.multimedia.image | Component | readonly byteBuffer: ArrayBuffer; | Added| 140| ohos.multimedia.image | Component | readonly pixelStride: number; | Added| 141| ohos.multimedia.image | Component | readonly rowStride: number; | Added| 142| ohos.multimedia.image | Component | readonly componentType: ComponentType; | Added| 143| ohos.multimedia.image | ComponentType | JPEG = 4 | Added| 144| ohos.multimedia.image | ComponentType | YUV_V = 3 | Added| 145| ohos.multimedia.image | ComponentType | YUV_U = 2 | Added| 146| ohos.multimedia.image | ComponentType | YUV_Y = 1 | Added| 147| ohos.multimedia.image | ScaleMode | CENTER_CROP = 1 | Added| 148| ohos.multimedia.image | ScaleMode | FIT_TARGET_SIZE = 0 | Added| 149| ohos.multimedia.image | AlphaType | UNPREMUL = 3 | Added| 150| ohos.multimedia.image | AlphaType | PREMUL = 2 | Added| 151| ohos.multimedia.image | AlphaType | OPAQUE = 1 | Added| 152| ohos.multimedia.image | AlphaType | UNKNOWN = 0 | Added| 153| ohos.multimedia.image | ImageFormat | JPEG = 2000 | Added| 154| ohos.multimedia.image | ImageFormat | YCBCR_422_SP = 1000 | Added| 155| ohos.multimedia.media | VideoRecorderConfig | location?: Location; | Added| 156| ohos.multimedia.media | VideoRecorderConfig | rotation?: number; | Added| 157| ohos.multimedia.media | VideoRecorderConfig | url: string; | Added| 158| ohos.multimedia.media | VideoRecorderConfig | profile: VideoRecorderProfile; | Added| 159| ohos.multimedia.media | VideoRecorderConfig | videoSourceType: VideoSourceType; | Added| 160| ohos.multimedia.media | VideoRecorderConfig | audioSourceType: AudioSourceType; | Added| 161| ohos.multimedia.media | VideoSourceType | VIDEO_SOURCE_TYPE_SURFACE_ES = 1 | Added| 162| ohos.multimedia.media | VideoSourceType | VIDEO_SOURCE_TYPE_SURFACE_YUV = 0 | Added| 163| ohos.multimedia.media | AudioSourceType | AUDIO_SOURCE_TYPE_MIC = 1 | Added| 164| ohos.multimedia.media | AudioSourceType | AUDIO_SOURCE_TYPE_DEFAULT = 0 | Added| 165| ohos.multimedia.media | VideoRecorderProfile | readonly videoFrameRate: number; | Added| 166| ohos.multimedia.media | VideoRecorderProfile | readonly videoFrameHeight: number; | Added| 167| ohos.multimedia.media | VideoRecorderProfile | readonly videoFrameWidth: number; | Added| 168| ohos.multimedia.media | VideoRecorderProfile | readonly videoCodec: CodecMimeType; | Added| 169| ohos.multimedia.media | VideoRecorderProfile | readonly videoBitrate: number; | Added| 170| ohos.multimedia.media | VideoRecorderProfile | readonly fileFormat: ContainerFormatType; | Added| 171| ohos.multimedia.media | VideoRecorderProfile | readonly audioSampleRate: number; | Added| 172| ohos.multimedia.media | VideoRecorderProfile | readonly audioCodec: CodecMimeType; | Added| 173| ohos.multimedia.media | VideoRecorderProfile | readonly audioChannels: number; | Added| 174| ohos.multimedia.media | VideoRecorderProfile | readonly audioBitrate: number; | Added| 175| ohos.multimedia.media | VideoRecorder | readonly state: VideoRecordState; | Added| 176| ohos.multimedia.media | VideoRecorder | on(type: 'error', callback: ErrorCallback): void; | Added| 177| ohos.multimedia.media | VideoRecorder | reset(callback: AsyncCallback\<void>): void;<br>reset(): Promise\<void>; | Added| 178| ohos.multimedia.media | VideoRecorder | release(callback: AsyncCallback\<void>): void;<br>release(): Promise\<void>; | Added| 179| ohos.multimedia.media | VideoRecorder | stop(callback: AsyncCallback\<void>): void;<br>stop(): Promise\<void>; | Added| 180| ohos.multimedia.media | VideoRecorder | resume(callback: AsyncCallback\<void>): void;<br>resume(): Promise\<void>; | Added| 181| ohos.multimedia.media | VideoRecorder | pause(callback: AsyncCallback\<void>): void;<br>pause(): Promise\<void>; | Added| 182| ohos.multimedia.media | VideoRecorder | start(callback: AsyncCallback\<void>): void;<br>start(): Promise\<void>; | Added| 183| ohos.multimedia.media | VideoRecorder | getInputSurface(callback: AsyncCallback\<string>): void;<br>getInputSurface(): Promise\<string>; | Added| 184| ohos.multimedia.media | VideoRecorder | prepare(config: VideoRecorderConfig, callback: AsyncCallback\<void>): void;<br>prepare(config: VideoRecorderConfig): Promise\<void>; | Added| 185| ohos.multimedia.media | media | function createVideoRecorder(callback: AsyncCallback\<VideoRecorder>): void;<br>function createVideoRecorder(): Promise\<VideoRecorder>; | Added| 186| ohos.multimedia.mediaLibrary | MediaLibrary | startMediaSelect(option: MediaSelectOption, callback: AsyncCallback\<Array\<string>>): void;<br>startMediaSelect(option: MediaSelectOption): Promise\<Array\<string>>; | Deprecated| 187| ohos.multimedia.mediaLibrary | MediaLibrary | startImagePreview(images: Array\<string>, index: number, callback: AsyncCallback\<void>): void;<br>startImagePreview(images: Array\<string>, callback: AsyncCallback\<void>): void;<br>startImagePreview(images: Array\<string>, index?: number): Promise\<void>; | Deprecated| 188| ohos.multimedia.mediaLibrary | MediaLibrary | storeMediaAsset(option: MediaAssetOption, callback: AsyncCallback\<string>): void;<br>storeMediaAsset(option: MediaAssetOption): Promise\<string>; | Deprecated| 189| ohos.multimedia.mediaLibrary | MediaSelectOption | count: number; | Deprecated| 190| ohos.multimedia.mediaLibrary | MediaSelectOption | type: 'image' \| 'video' \| 'media'; | Deprecated| 191| ohos.multimedia.mediaLibrary | MediaAssetOption | relativePath?: string; | Deprecated| 192| ohos.multimedia.mediaLibrary | MediaAssetOption | mimeType: string; | Deprecated| 193| ohos.multimedia.mediaLibrary | MediaAssetOption | src: string; | Deprecated| 194