• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# JS API Changes of the Multimedia Subsystem
2
3The table below lists the APIs changes of the multimedia subsystem in OpenHarmony 3.1 Release over OpenHarmony 3.0 LTS.
4
5## API Changes
6
7| Module| Class| Method/Attribute/Enumeration/Constant| Change Type|
8|---|---|---|---|
9| ohos.multimedia.mediaLibrary | Size | height: number; | Added|
10| ohos.multimedia.mediaLibrary | Size | width: number; | Added|
11| ohos.multimedia.mediaLibrary | MediaLibrary | release(callback: AsyncCallback\<void>): void;<br>release(): Promise\<void>; | Added|
12| ohos.multimedia.mediaLibrary | MediaLibrary | startMediaSelect(option: MediaSelectOption, callback: AsyncCallback\<Array\<string>>): void;<br>startMediaSelect(option: MediaSelectOption): Promise\<Array\<string>>; | Added|
13| 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>; | Added|
14| ohos.multimedia.mediaLibrary | MediaLibrary | storeMediaAsset(option: MediaAssetOption, callback: AsyncCallback\<string>): void;<br>storeMediaAsset(option: MediaAssetOption): Promise\<string>; | Added|
15| ohos.multimedia.mediaLibrary | MediaLibrary | getAlbums(options: MediaFetchOptions, callback: AsyncCallback\<Array\<Album>>): void;<br>getAlbums(options: MediaFetchOptions): Promise\<Array\<Album>>; | Added|
16| ohos.multimedia.mediaLibrary | MediaLibrary | createAsset(mediaType: MediaType, displayName: string, relativePath: string, callback: AsyncCallback\<FileAsset>): void;<br>createAsset(mediaType: MediaType, displayName: string, relativePath: string): Promise\<FileAsset>; | Added|
17| ohos.multimedia.mediaLibrary | MediaLibrary | off(type: 'deviceChange'\|'albumChange'\|'imageChange'\|'audioChange'\|'videoChange'\|'fileChange'\|'remoteFileChange', callback?: Callback\<void>): void; | Added|
18| ohos.multimedia.mediaLibrary | MediaLibrary | off(type: 'deviceChange'\|'albumChange'\|'imageChange'\|'audioChange'\|'videoChange'\|'fileChange'\|'remoteFileChange', callback?: Callback\<void>): void; | Added|
19| ohos.multimedia.mediaLibrary | MediaLibrary | off(type: 'deviceChange'\|'albumChange'\|'imageChange'\|'audioChange'\|'videoChange'\|'fileChange'\|'remoteFileChange', callback?: Callback\<void>): void; | Added|
20| ohos.multimedia.mediaLibrary | MediaLibrary | off(type: 'deviceChange'\|'albumChange'\|'imageChange'\|'audioChange'\|'videoChange'\|'fileChange'\|'remoteFileChange', callback?: Callback\<void>): void; | Added|
21| ohos.multimedia.mediaLibrary | MediaLibrary | off(type: 'deviceChange'\|'albumChange'\|'imageChange'\|'audioChange'\|'videoChange'\|'fileChange'\|'remoteFileChange', callback?: Callback\<void>): void; | Added|
22| ohos.multimedia.mediaLibrary | MediaLibrary | off(type: 'deviceChange'\|'albumChange'\|'imageChange'\|'audioChange'\|'videoChange'\|'fileChange'\|'remoteFileChange', callback?: Callback\<void>): void; | Added|
23| ohos.multimedia.mediaLibrary | MediaLibrary | off(type: 'deviceChange'\|'albumChange'\|'imageChange'\|'audioChange'\|'videoChange'\|'fileChange'\|'remoteFileChange', callback?: Callback\<void>): void; | Added|
24| ohos.multimedia.mediaLibrary | MediaLibrary | on(type: 'deviceChange'\|'albumChange'\|'imageChange'\|'audioChange'\|'videoChange'\|'fileChange'\|'remoteFileChange', callback: Callback\<void>): void; | Added|
25| ohos.multimedia.mediaLibrary | MediaLibrary | on(type: 'deviceChange'\|'albumChange'\|'imageChange'\|'audioChange'\|'videoChange'\|'fileChange'\|'remoteFileChange', callback: Callback\<void>): void; | Added|
26| ohos.multimedia.mediaLibrary | MediaLibrary | on(type: 'deviceChange'\|'albumChange'\|'imageChange'\|'audioChange'\|'videoChange'\|'fileChange'\|'remoteFileChange', callback: Callback\<void>): void; | Added|
27| ohos.multimedia.mediaLibrary | MediaLibrary | on(type: 'deviceChange'\|'albumChange'\|'imageChange'\|'audioChange'\|'videoChange'\|'fileChange'\|'remoteFileChange', callback: Callback\<void>): void; | Added|
28| ohos.multimedia.mediaLibrary | MediaLibrary | on(type: 'deviceChange'\|'albumChange'\|'imageChange'\|'audioChange'\|'videoChange'\|'fileChange'\|'remoteFileChange', callback: Callback\<void>): void; | Added|
29| ohos.multimedia.mediaLibrary | MediaLibrary | on(type: 'deviceChange'\|'albumChange'\|'imageChange'\|'audioChange'\|'videoChange'\|'fileChange'\|'remoteFileChange', callback: Callback\<void>): void; | Added|
30| ohos.multimedia.mediaLibrary | MediaLibrary | on(type: 'deviceChange'\|'albumChange'\|'imageChange'\|'audioChange'\|'videoChange'\|'fileChange'\|'remoteFileChange', callback: Callback\<void>): void; | Added|
31| ohos.multimedia.mediaLibrary | MediaLibrary | getFileAssets(options: MediaFetchOptions, callback: AsyncCallback\<FetchFileResult>): void;<br>getFileAssets(options: MediaFetchOptions): Promise\<FetchFileResult>; | Added|
32| ohos.multimedia.mediaLibrary | MediaLibrary | getPublicDirectory(type: DirectoryType, callback: AsyncCallback\<string>): void;<br>getPublicDirectory(type: DirectoryType): Promise\<string>; | Added|
33| ohos.multimedia.mediaLibrary | DirectoryType | DIR_DOWNLOAD | Added|
34| ohos.multimedia.mediaLibrary | DirectoryType | DIR_DOCUMENTS | Added|
35| ohos.multimedia.mediaLibrary | DirectoryType | DIR_AUDIO | Added|
36| ohos.multimedia.mediaLibrary | DirectoryType | DIR_IMAGE | Added|
37| ohos.multimedia.mediaLibrary | DirectoryType | DIR_VIDEO | Added|
38| ohos.multimedia.mediaLibrary | DirectoryType | DIR_CAMERA = 0 | Added|
39| ohos.multimedia.mediaLibrary | Album | getFileAssets(callback: AsyncCallback\<FetchFileResult>): void;<br>getFileAssets(options: MediaFetchOptions, callback: AsyncCallback\<FetchFileResult>): void;<br>getFileAssets(options?: MediaFetchOptions): Promise\<FetchFileResult>; | Added|
40| ohos.multimedia.mediaLibrary | Album | commitModify(callback: AsyncCallback\<void>): void;<br>commitModify(): Promise\<void>; | Added|
41| ohos.multimedia.mediaLibrary | Album | readonly coverUri: string; | Added|
42| ohos.multimedia.mediaLibrary | Album | readonly relativePath: string; | Added|
43| ohos.multimedia.mediaLibrary | Album | readonly count: number; | Added|
44| ohos.multimedia.mediaLibrary | Album | readonly dateModified: number; | Added|
45| ohos.multimedia.mediaLibrary | Album | readonly albumUri: string; | Added|
46| ohos.multimedia.mediaLibrary | Album | albumName: string; | Added|
47| ohos.multimedia.mediaLibrary | Album | readonly albumId: number; | Added|
48| ohos.multimedia.mediaLibrary | FetchFileResult | getAllObject(callback: AsyncCallback\<Array\<FileAsset>>): void;<br>getAllObject(): Promise\<Array\<FileAsset>>; | Added|
49| ohos.multimedia.mediaLibrary | FetchFileResult | getPositionObject(index: number, callback: AsyncCallback\<FileAsset>): void;<br>getPositionObject(index: number): Promise\<FileAsset>; | Added|
50| ohos.multimedia.mediaLibrary | FetchFileResult | getLastObject(callback: AsyncCallback\<FileAsset>): void;<br>getLastObject(): Promise\<FileAsset>; | Added|
51| ohos.multimedia.mediaLibrary | FetchFileResult | getNextObject(callback: AsyncCallback\<FileAsset>): void;<br>getNextObject(): Promise\<FileAsset>; | Added|
52| ohos.multimedia.mediaLibrary | FetchFileResult | getFirstObject(callback: AsyncCallback\<FileAsset>): void;<br>getFirstObject(): Promise\<FileAsset>; | Added|
53| ohos.multimedia.mediaLibrary | FetchFileResult | close(): void; | Added|
54| ohos.multimedia.mediaLibrary | FetchFileResult | isAfterLast(): boolean; | Added|
55| ohos.multimedia.mediaLibrary | FetchFileResult | getCount(): number; | Added|
56| ohos.multimedia.mediaLibrary | MediaFetchOptions | extendArgs?: string; | Added|
57| ohos.multimedia.mediaLibrary | MediaFetchOptions | networkId?: string; | Added|
58| ohos.multimedia.mediaLibrary | MediaFetchOptions | uri?: string; | Added|
59| ohos.multimedia.mediaLibrary | MediaFetchOptions | order?: string; | Added|
60| ohos.multimedia.mediaLibrary | MediaFetchOptions | selectionArgs: Array\<string>; | Added|
61| ohos.multimedia.mediaLibrary | MediaFetchOptions | selections: string; | Added|
62| ohos.multimedia.mediaLibrary | FileKey | ALBUM_NAME = "bucket_display_name" | Added|
63| ohos.multimedia.mediaLibrary | FileKey | ALBUM_ID = "bucket_id" | Added|
64| ohos.multimedia.mediaLibrary | FileKey | ORIENTATION = "orientation" | Added|
65| ohos.multimedia.mediaLibrary | FileKey | HEIGHT = "height" | Added|
66| ohos.multimedia.mediaLibrary | FileKey | WIDTH = "width" | Added|
67| ohos.multimedia.mediaLibrary | FileKey | DURATION = "duration" | Added|
68| ohos.multimedia.mediaLibrary | FileKey | AUDIOALBUM = "audio_album" | Added|
69| ohos.multimedia.mediaLibrary | FileKey | ARTIST = "artist" | Added|
70| ohos.multimedia.mediaLibrary | FileKey | TITLE = "title" | Added|
71| ohos.multimedia.mediaLibrary | FileKey | DATE_TAKEN = "date_taken" | Added|
72| ohos.multimedia.mediaLibrary | FileKey | DATE_MODIFIED = "date_modified" | Added|
73| ohos.multimedia.mediaLibrary | FileKey | DATE_ADDED = "date_added" | Added|
74| ohos.multimedia.mediaLibrary | FileKey | SIZE = "size" | Added|
75| ohos.multimedia.mediaLibrary | FileKey | MEDIA_TYPE = "media_type" | Added|
76| ohos.multimedia.mediaLibrary | FileKey | MIME_TYPE = "mime_type" | Added|
77| ohos.multimedia.mediaLibrary | FileKey | PARENT = "parent" | Added|
78| ohos.multimedia.mediaLibrary | FileKey | DISPLAY_NAME = "display_name" | Added|
79| ohos.multimedia.mediaLibrary | FileKey | RELATIVE_PATH = "relative_path" | Added|
80| ohos.multimedia.mediaLibrary | FileKey | ID = "file_id" | Added|
81| ohos.multimedia.mediaLibrary | FileAsset | isTrash(callback: AsyncCallback\<boolean>): void;<br>isTrash():Promise\<boolean>; | Added|
82| ohos.multimedia.mediaLibrary | FileAsset | trash(isTrash: boolean, callback: AsyncCallback\<void>): void;<br>trash(isTrash: boolean): Promise\<void>; | Added|
83| ohos.multimedia.mediaLibrary | FileAsset | isFavorite(callback: AsyncCallback\<boolean>): void;<br>isFavorite():Promise\<boolean>; | Added|
84| ohos.multimedia.mediaLibrary | FileAsset | favorite(isFavorite: boolean, callback: AsyncCallback\<void>): void;<br>favorite(isFavorite: boolean): Promise\<void>; | Added|
85| ohos.multimedia.mediaLibrary | FileAsset | getThumbnail(callback: AsyncCallback\<image.PixelMap>): void;<br>getThumbnail(size: Size, callback: AsyncCallback\<image.PixelMap>): void;<br>getThumbnail(size?: Size): Promise\<image.PixelMap>; | Added|
86| ohos.multimedia.mediaLibrary | FileAsset | close(fd: number, callback: AsyncCallback\<void>): void;<br>close(fd: number): Promise\<void>; | Added|
87| ohos.multimedia.mediaLibrary | FileAsset | open(mode: string, callback: AsyncCallback\<number>): void;<br>open(mode: string): Promise\<number>; | Added|
88| ohos.multimedia.mediaLibrary | FileAsset | commitModify(callback: AsyncCallback\<void>): void;<br>commitModify(): Promise\<void>; | Added|
89| ohos.multimedia.mediaLibrary | FileAsset | isDirectory(callback: AsyncCallback\<boolean>): void;<br>isDirectory():Promise\<boolean>; | Added|
90| ohos.multimedia.mediaLibrary | FileAsset | readonly albumName: string; | Added|
91| ohos.multimedia.mediaLibrary | FileAsset | readonly albumUri: string; | Added|
92| ohos.multimedia.mediaLibrary | FileAsset | readonly albumId: number; | Added|
93| ohos.multimedia.mediaLibrary | FileAsset | readonly duration: number; | Added|
94| ohos.multimedia.mediaLibrary | FileAsset | orientation: number; | Added|
95| ohos.multimedia.mediaLibrary | FileAsset | readonly height: number; | Added|
96| ohos.multimedia.mediaLibrary | FileAsset | readonly width: number; | Added|
97| ohos.multimedia.mediaLibrary | FileAsset | readonly audioAlbum: string; | Added|
98| ohos.multimedia.mediaLibrary | FileAsset | readonly artist: string; | Added|
99| ohos.multimedia.mediaLibrary | FileAsset | readonly dateTaken: number; | Added|
100| ohos.multimedia.mediaLibrary | FileAsset | readonly dateModified: number; | Added|
101| ohos.multimedia.mediaLibrary | FileAsset | readonly dateAdded: number; | Added|
102| ohos.multimedia.mediaLibrary | FileAsset | readonly size: number; | Added|
103| ohos.multimedia.mediaLibrary | FileAsset | readonly parent: number; | Added|
104| ohos.multimedia.mediaLibrary | FileAsset | relativePath: string; | Added|
105| ohos.multimedia.mediaLibrary | FileAsset | title: string; | Added|
106| ohos.multimedia.mediaLibrary | FileAsset | displayName: string; | Added|
107| ohos.multimedia.mediaLibrary | FileAsset | readonly mediaType: MediaType; | Added|
108| ohos.multimedia.mediaLibrary | FileAsset | readonly mimeType: string; | Added|
109| ohos.multimedia.mediaLibrary | FileAsset | readonly uri: string; | Added|
110| ohos.multimedia.mediaLibrary | FileAsset | readonly id: number; | Added|
111| ohos.multimedia.mediaLibrary | MediaSelectOption | count: number; | Added|
112| ohos.multimedia.mediaLibrary | MediaSelectOption | type: 'image' \| 'video' \| 'media'; | Added|
113| ohos.multimedia.mediaLibrary | MediaAssetOption | relativePath?: string; | Added|
114| ohos.multimedia.mediaLibrary | MediaAssetOption | mimeType: string; | Added|
115| ohos.multimedia.mediaLibrary | MediaAssetOption | src: string; | Added|
116| ohos.multimedia.mediaLibrary | MediaType | AUDIO | Added|
117| ohos.multimedia.mediaLibrary | MediaType | VIDEO | Added|
118| ohos.multimedia.mediaLibrary | MediaType | IMAGE | Added|
119| ohos.multimedia.mediaLibrary | MediaType | FILE = 0 | Added|
120| ohos.multimedia.mediaLibrary | mediaLibrary | getMediaLibrary(): MediaLibrary;<br>getMediaLibrary(context: Context): MediaLibrary; | Added|
121| ohos.multimedia.media | CodecMimeType | AUDIO_FLAC = 'audio/flac' | Added|
122| ohos.multimedia.media | CodecMimeType | AUDIO_VORBIS = 'audio/vorbis' | Added|
123| ohos.multimedia.media | CodecMimeType | AUDIO_AAC = 'audio/mp4a-latm' | Added|
124| ohos.multimedia.media | CodecMimeType | VIDEO_VP8 = 'video/x-vnd.on2.vp8' | Added|
125| ohos.multimedia.media | CodecMimeType | VIDEO_MPEG4 = 'video/mp4v-es' | Added|
126| ohos.multimedia.media | CodecMimeType | VIDEO_MPEG2 = 'video/mpeg2' | Added|
127| ohos.multimedia.media | CodecMimeType | VIDEO_AVC = 'video/avc' | Added|
128| ohos.multimedia.media | CodecMimeType | VIDEO_H263 = 'video/h263' | Added|
129| ohos.multimedia.media | SeekMode | SEEK_PREV_SYNC = 1 | Added|
130| ohos.multimedia.media | SeekMode | SEEK_NEXT_SYNC = 0 | Added|
131| ohos.multimedia.media | MediaDescription | [key : string]: Object; | Added|
132| ohos.multimedia.media | MediaDescriptionKey | MD_KEY_AUD_SAMPLE_RATE = "sample_rate" | Added|
133| ohos.multimedia.media | MediaDescriptionKey | MD_KEY_AUD_CHANNEL_COUNT = "channel_count" | Added|
134| ohos.multimedia.media | MediaDescriptionKey | MD_KEY_FRAME_RATE = "frame_rate" | Added|
135| ohos.multimedia.media | MediaDescriptionKey | MD_KEY_HEIGHT = "height" | Added|
136| ohos.multimedia.media | MediaDescriptionKey | MD_KEY_WIDTH = "width" | Added|
137| ohos.multimedia.media | MediaDescriptionKey | MD_KEY_BITRATE = "bitrate" | Added|
138| ohos.multimedia.media | MediaDescriptionKey | MD_KEY_DURATION = "duration" | Added|
139| ohos.multimedia.media | MediaDescriptionKey | MD_KEY_CODEC_MIME = "codec_mime" | Added|
140| ohos.multimedia.media | MediaDescriptionKey | MD_KEY_TRACK_TYPE = "track_type" | Added|
141| ohos.multimedia.media | MediaDescriptionKey | MD_KEY_TRACK_INDEX = "track_index" | Added|
142| ohos.multimedia.media | MediaType | MEDIA_TYPE_VID = 1 | Added|
143| ohos.multimedia.media | MediaType | MEDIA_TYPE_AUD = 0 | Added|
144| ohos.multimedia.media | ContainerFormatType | CFT_MPEG_4A = "m4a" | Added|
145| ohos.multimedia.media | ContainerFormatType | CFT_MPEG_4 = "mp4" | Added|
146| ohos.multimedia.media | VideoPlayer | on(type: 'error', callback: ErrorCallback): void; | Added|
147| ohos.multimedia.media | VideoPlayer | on(type: 'videoSizeChanged', callback: (width: number, height: number) => void): void; | Added|
148| ohos.multimedia.media | VideoPlayer | on(type: 'startRenderFrame', callback: Callback\<void>): void; | Added|
149| ohos.multimedia.media | VideoPlayer | on(type: 'bufferingUpdate', callback: (infoType: BufferingInfoType, value: number) => void): void; | Added|
150| ohos.multimedia.media | VideoPlayer | on(type: 'playbackCompleted', callback: Callback\<void>): void; | Added|
151| ohos.multimedia.media | VideoPlayer | setSpeed(speed:number, callback: AsyncCallback\<number>): void;<br>setSpeed(speed:number): Promise\<number>; | Added|
152| ohos.multimedia.media | VideoPlayer | readonly height: number; | Added|
153| ohos.multimedia.media | VideoPlayer | readonly width: number; | Added|
154| ohos.multimedia.media | VideoPlayer | readonly state: VideoPlayState; | Added|
155| ohos.multimedia.media | VideoPlayer | readonly duration: number; | Added|
156| ohos.multimedia.media | VideoPlayer | readonly currentTime: number; | Added|
157| ohos.multimedia.media | VideoPlayer | loop: boolean; | Added|
158| ohos.multimedia.media | VideoPlayer | url: string; | Added|
159| ohos.multimedia.media | VideoPlayer | getTrackDescription(callback: AsyncCallback\<Array\<MediaDescription>>): void;<br>getTrackDescription() : Promise\<Array\<MediaDescription>>; | Added|
160| ohos.multimedia.media | VideoPlayer | release(callback: AsyncCallback\<void>): void;<br>release(): Promise\<void>; | Added|
161| ohos.multimedia.media | VideoPlayer | setVolume(vol: number, callback: AsyncCallback\<void>): void;<br>setVolume(vol: number): Promise\<void>; | Added|
162| ohos.multimedia.media | VideoPlayer | seek(timeMs: number, callback: AsyncCallback\<number>): void;<br>seek(timeMs: number, mode:SeekMode, callback: AsyncCallback\<number>): void;<br>seek(timeMs: number, mode?:SeekMode): Promise\<number>; | Added|
163| ohos.multimedia.media | VideoPlayer | reset(callback: AsyncCallback\<void>): void;<br>reset(): Promise\<void>; | Added|
164| ohos.multimedia.media | VideoPlayer | stop(callback: AsyncCallback\<void>): void;<br>stop(): Promise\<void>; | Added|
165| ohos.multimedia.media | VideoPlayer | pause(callback: AsyncCallback\<void>): void;<br>pause(): Promise\<void>; | Added|
166| ohos.multimedia.media | VideoPlayer | play(callback: AsyncCallback\<void>): void;<br>play(): Promise\<void>; | Added|
167| ohos.multimedia.media | VideoPlayer | prepare(callback: AsyncCallback\<void>): void;<br>prepare(): Promise\<void>; | Added|
168| ohos.multimedia.media | VideoPlayer | setDisplaySurface(surfaceId: string, callback: AsyncCallback\<void>): void;<br>setDisplaySurface(surfaceId: string): Promise\<void>; | Added|
169| ohos.multimedia.media | PlaybackSpeed | SPEED_FORWARD_2_00_X = 4 | Added|
170| ohos.multimedia.media | PlaybackSpeed | SPEED_FORWARD_1_75_X = 3 | Added|
171| ohos.multimedia.media | PlaybackSpeed | SPEED_FORWARD_1_25_X = 2 | Added|
172| ohos.multimedia.media | PlaybackSpeed | SPEED_FORWARD_1_00_X = 1 | Added|
173| ohos.multimedia.media | PlaybackSpeed | SPEED_FORWARD_0_75_X = 0 | Added|
174| ohos.multimedia.media | AudioRecorder | on(type: 'error', callback: ErrorCallback): void; | Added|
175| ohos.multimedia.media | AudioRecorder | on(type: 'prepare' \| 'start' \| 'pause' \| 'resume' \| 'stop' \| 'release' \| 'reset', callback: () => void): void; | Added|
176| ohos.multimedia.media | AudioRecorder | on(type: 'prepare' \| 'start' \| 'pause' \| 'resume' \| 'stop' \| 'release' \| 'reset', callback: () => void): void; | Added|
177| ohos.multimedia.media | AudioRecorder | on(type: 'prepare' \| 'start' \| 'pause' \| 'resume' \| 'stop' \| 'release' \| 'reset', callback: () => void): void; | Added|
178| ohos.multimedia.media | AudioRecorder | on(type: 'prepare' \| 'start' \| 'pause' \| 'resume' \| 'stop' \| 'release' \| 'reset', callback: () => void): void; | Added|
179| ohos.multimedia.media | AudioRecorder | on(type: 'prepare' \| 'start' \| 'pause' \| 'resume' \| 'stop' \| 'release' \| 'reset', callback: () => void): void; | Added|
180| ohos.multimedia.media | AudioRecorder | on(type: 'prepare' \| 'start' \| 'pause' \| 'resume' \| 'stop' \| 'release' \| 'reset', callback: () => void): void; | Added|
181| ohos.multimedia.media | AudioRecorder | on(type: 'prepare' \| 'start' \| 'pause' \| 'resume' \| 'stop' \| 'release' \| 'reset', callback: () => void): void; | Added|
182| ohos.multimedia.media | AudioRecorder | reset(): void; | Added|
183| ohos.multimedia.media | AudioRecorder | release(): void; | Added|
184| ohos.multimedia.media | AudioRecorder | stop(): void; | Added|
185| ohos.multimedia.media | AudioRecorder | resume(): void; | Added|
186| ohos.multimedia.media | AudioRecorder | pause(): void; | Added|
187| ohos.multimedia.media | AudioRecorder | start(): void; | Added|
188| ohos.multimedia.media | AudioRecorder | prepare(config: AudioRecorderConfig): void; | Added|
189| ohos.multimedia.media | AudioRecorderConfig | fileFormat?: ContainerFormatType; | Added|
190| ohos.multimedia.media | AudioRecorderConfig | audioEncoderMime?: CodecMimeType; | Added|
191| ohos.multimedia.media | AudioRecorderConfig | location?: Location; | Added|
192| ohos.multimedia.media | AudioRecorderConfig | uri: string; | Added|
193| ohos.multimedia.media | AudioRecorderConfig | format?: AudioOutputFormat; | Added|
194| ohos.multimedia.media | AudioRecorderConfig | numberOfChannels?: number; | Added|
195| ohos.multimedia.media | AudioRecorderConfig | audioSampleRate?: number; | Added|
196| ohos.multimedia.media | AudioRecorderConfig | audioEncodeBitRate?: number; | Added|
197| ohos.multimedia.media | AudioRecorderConfig | audioEncoder?: AudioEncoder; | Added|
198| ohos.multimedia.media | Location | longitude: number; | Added|
199| ohos.multimedia.media | Location | latitude: number; | Added|
200| ohos.multimedia.media | AudioOutputFormat | AAC_ADTS = 6 | Added|
201| ohos.multimedia.media | AudioOutputFormat | AMR_WB = 4 | Added|
202| ohos.multimedia.media | AudioOutputFormat | AMR_NB = 3 | Added|
203| ohos.multimedia.media | AudioOutputFormat | MPEG_4 = 2 | Added|
204| ohos.multimedia.media | AudioOutputFormat | DEFAULT = 0 | Added|
205| ohos.multimedia.media | AudioEncoder | HE_AAC = 4 | Added|
206| ohos.multimedia.media | AudioEncoder | AAC_LC = 3 | Added|
207| ohos.multimedia.media | AudioEncoder | AMR_WB = 2 | Added|
208| ohos.multimedia.media | AudioEncoder | AMR_NB = 1 | Added|
209| ohos.multimedia.media | AudioEncoder | DEFAULT = 0 | Added|
210| ohos.multimedia.media | AudioPlayer | on(type: 'play' \| 'pause' \| 'stop' \| 'reset' \| 'dataLoad' \| 'finish' \| 'volumeChange', callback: () => void): void; | Added|
211| ohos.multimedia.media | AudioPlayer | on(type: 'bufferingUpdate', callback: (infoType: BufferingInfoType, value: number) => void): void; | Added|
212| ohos.multimedia.media | AudioPlayer | getTrackDescription(callback: AsyncCallback\<Array\<MediaDescription>>): void;<br>getTrackDescription() : Promise\<Array\<MediaDescription>>; | Added|
213| ohos.multimedia.media | AudioPlayer | reset(): void; | Added|
214| ohos.multimedia.media | BufferingInfoType | CACHED_DURATION = 4 | Added|
215| ohos.multimedia.media | BufferingInfoType | BUFFERING_PERCENT = 3 | Added|
216| ohos.multimedia.media | BufferingInfoType | BUFFERING_END = 2 | Added|
217| ohos.multimedia.media | BufferingInfoType | BUFFERING_START = 1 | Added|
218| ohos.multimedia.media | MediaErrorCode | MSERR_UNSUPPORTED = 9 | Added|
219| ohos.multimedia.media | MediaErrorCode | MSERR_INVALID_STATE = 8 | Added|
220| ohos.multimedia.media | MediaErrorCode | MSERR_SERVICE_DIED = 7 | Added|
221| ohos.multimedia.media | MediaErrorCode | MSERR_UNKNOWN = 6 | Added|
222| ohos.multimedia.media | MediaErrorCode | MSERR_TIMEOUT = 5 | Added|
223| ohos.multimedia.media | MediaErrorCode | MSERR_IO = 4 | Added|
224| ohos.multimedia.media | MediaErrorCode | MSERR_INVALID_VAL = 3 | Added|
225| ohos.multimedia.media | MediaErrorCode | MSERR_OPERATION_NOT_PERMIT = 2 | Added|
226| ohos.multimedia.media | MediaErrorCode | MSERR_NO_MEMORY = 1 | Added|
227| ohos.multimedia.media | MediaErrorCode | MSERR_OK = 0 | Added|
228| ohos.multimedia.media | media | createVideoPlayer(callback: AsyncCallback\<VideoPlayer>): void;<br>createVideoPlayer() : Promise\<VideoPlayer>; | Added|
229| ohos.multimedia.media | media | createAudioRecorder(): AudioRecorder; | Added|
230| ohos.multimedia.image | ImagePacker | readonly supportedFormats: Array\<string>; | Added|
231| ohos.multimedia.image | ImagePacker | release(callback: AsyncCallback\<void>): void;<br>release(): Promise\<void>; | Added|
232| ohos.multimedia.image | ImagePacker | packing(source: ImageSource, option: PackingOption, callback: AsyncCallback\<ArrayBuffer>): void;<br>packing(source: ImageSource, option: PackingOption): Promise\<ArrayBuffer>;<br>packing(source: PixelMap, option: PackingOption, callback: AsyncCallback\<ArrayBuffer>): void;<br>packing(source: PixelMap, option: PackingOption): Promise\<ArrayBuffer>; | Added|
233| ohos.multimedia.image | ImageSource | readonly supportedFormats: Array\<string>; | Added|
234| ohos.multimedia.image | ImageSource | release(callback: AsyncCallback\<void>): void;<br>release(): Promise\<void>; | Added|
235| ohos.multimedia.image | ImageSource | getImageProperty(key:string, options?: GetImagePropertyOptions): Promise\<string>;<br>getImageProperty(key:string, callback: AsyncCallback\<string>): void;<br>getImageProperty(key:string, options: GetImagePropertyOptions, callback: AsyncCallback\<string>): void; | Added|
236| ohos.multimedia.image | ImageSource | createPixelMap(options?: DecodingOptions): Promise\<PixelMap>;<br>createPixelMap(callback: AsyncCallback\<PixelMap>): void;<br>createPixelMap(options: DecodingOptions, callback: AsyncCallback\<PixelMap>): void; | Added|
237| ohos.multimedia.image | ImageSource | getImageInfo(index: number, callback: AsyncCallback\<ImageInfo>): void;<br>getImageInfo(callback: AsyncCallback\<ImageInfo>): void;<br>getImageInfo(index?: number): Promise\<ImageInfo>; | Added|
238| ohos.multimedia.image | PixelMap | release(callback: AsyncCallback\<void>): void;<br>release(): Promise\<void>; | Added|
239| ohos.multimedia.image | PixelMap | getPixelBytesNumber(): number; | Added|
240| ohos.multimedia.image | PixelMap | getBytesNumberPerRow(): number; | Added|
241| ohos.multimedia.image | PixelMap | getImageInfo(): Promise\<ImageInfo>;<br>getImageInfo(callback: AsyncCallback\<ImageInfo>): void; | Added|
242| ohos.multimedia.image | PixelMap | writeBufferToPixels(src: ArrayBuffer): Promise\<void>;<br>writeBufferToPixels(src: ArrayBuffer, callback: AsyncCallback\<void>): void; | Added|
243| ohos.multimedia.image | PixelMap | writePixels(area: PositionArea): Promise\<void>;<br>writePixels(area: PositionArea, callback: AsyncCallback\<void>): void; | Added|
244| ohos.multimedia.image | PixelMap | readPixels(area: PositionArea): Promise\<void>;<br>readPixels(area: PositionArea, callback: AsyncCallback\<void>): void; | Added|
245| ohos.multimedia.image | PixelMap | readPixelsToBuffer(dst: ArrayBuffer): Promise\<void>;<br>readPixelsToBuffer(dst: ArrayBuffer, callback: AsyncCallback\<void>): void; | Added|
246| ohos.multimedia.image | PixelMap | readonly isEditable: boolean; | Added|
247| ohos.multimedia.image | image | createImagePacker(): ImagePacker; | Added|
248| ohos.multimedia.image | image | createImageSource(uri: string): ImageSource;<br>createImageSource(fd: number): ImageSource; | Added|
249| ohos.multimedia.image | image | createPixelMap(colors: ArrayBuffer, options: InitializationOptions, callback: AsyncCallback\<PixelMap>): void;<br>createPixelMap(colors: ArrayBuffer, options: InitializationOptions): Promise\<PixelMap>; | Added|
250| ohos.multimedia.image | InitializationOptions | editable?: boolean; | Added|
251| ohos.multimedia.image | InitializationOptions | pixelFormat?: PixelMapFormat; | Added|
252| ohos.multimedia.image | InitializationOptions | size: Size; | Added|
253| ohos.multimedia.image | DecodingOptions | desiredPixelFormat?: PixelMapFormat; | Added|
254| ohos.multimedia.image | DecodingOptions | desiredRegion?: Region; | Added|
255| ohos.multimedia.image | DecodingOptions | desiredSize?: Size; | Added|
256| ohos.multimedia.image | DecodingOptions | editable?: boolean; | Added|
257| ohos.multimedia.image | DecodingOptions | rotate?: number; | Added|
258| ohos.multimedia.image | DecodingOptions | sampleSize?: number; | Added|
259| ohos.multimedia.image | DecodingOptions | index?: number; | Added|
260| ohos.multimedia.image | GetImagePropertyOptions | defaultValue?: string; | Added|
261| ohos.multimedia.image | GetImagePropertyOptions | index?: number; | Added|
262| ohos.multimedia.image | PackingOption | quality: number; | Added|
263| ohos.multimedia.image | PackingOption | format: string; | Added|
264| ohos.multimedia.image | ImageInfo | size: Size; | Added|
265| ohos.multimedia.image | PositionArea | region: Region; | Added|
266| ohos.multimedia.image | PositionArea | stride: number; | Added|
267| ohos.multimedia.image | PositionArea | offset: number; | Added|
268| ohos.multimedia.image | PositionArea | pixels: ArrayBuffer; | Added|
269| ohos.multimedia.image | Region | y: number; | Added|
270| ohos.multimedia.image | Region | x: number; | Added|
271| ohos.multimedia.image | Region | size: Size; | Added|
272| ohos.multimedia.image | PropertyKey | GPS_LONGITUDE_REF = "GPSLongitudeRef" | Added|
273| ohos.multimedia.image | PropertyKey | GPS_LATITUDE_REF = "GPSLatitudeRef" | Added|
274| ohos.multimedia.image | PropertyKey | GPS_LONGITUDE = "GPSLongitude" | Added|
275| ohos.multimedia.image | PropertyKey | GPS_LATITUDE = "GPSLatitude" | Added|
276| ohos.multimedia.image | PropertyKey | IMAGE_WIDTH = "ImageWidth" | Added|
277| ohos.multimedia.image | PropertyKey | IMAGE_LENGTH = "ImageLength" | Added|
278| ohos.multimedia.image | PropertyKey | ORIENTATION = "Orientation" | Added|
279| ohos.multimedia.image | PropertyKey | BITS_PER_SAMPLE = "BitsPerSample" | Added|
280| ohos.multimedia.image | Size | width: number; | Added|
281| ohos.multimedia.image | Size | height: number; | Added|
282| ohos.multimedia.image | PixelMapFormat | RGBA_8888 = 3 | Added|
283| ohos.multimedia.image | PixelMapFormat | RGB_565 = 2 | Added|
284| ohos.multimedia.image | PixelMapFormat | UNKNOWN = 0 | Added|
285| ohos.multimedia.audio | AudioCapturer | on(type: "stateChange", callback: Callback\<AudioState>): void; | Added|
286| ohos.multimedia.audio | AudioCapturer | off(type: "periodReach"): void; | Added|
287| ohos.multimedia.audio | AudioCapturer | on(type: "periodReach", frame: number, callback: (position: number) => {}): void; | Added|
288| ohos.multimedia.audio | AudioCapturer | off(type: "markReach"): void; | Added|
289| ohos.multimedia.audio | AudioCapturer | on(type: "markReach", frame: number, callback: (position: number) => {}): void; | Added|
290| ohos.multimedia.audio | AudioCapturer | getBufferSize(callback: AsyncCallback\<number>): void;<br>getBufferSize(): Promise\<number>; | Added|
291| ohos.multimedia.audio | AudioCapturer | release(callback: AsyncCallback\<void>): void;<br>release(): Promise\<void>; | Added|
292| ohos.multimedia.audio | AudioCapturer | stop(callback: AsyncCallback\<void>): void;<br>stop(): Promise\<void>; | Added|
293| ohos.multimedia.audio | AudioCapturer | getAudioTime(callback: AsyncCallback\<number>): void;<br>getAudioTime(): Promise\<number>; | Added|
294| ohos.multimedia.audio | AudioCapturer | read(size: number, isBlockingRead: boolean, callback: AsyncCallback\<ArrayBuffer>): void;<br>read(size: number, isBlockingRead: boolean): Promise\<ArrayBuffer>; | Added|
295| ohos.multimedia.audio | AudioCapturer | start(callback: AsyncCallback\<void>): void;<br>start(): Promise\<void>; | Added|
296| ohos.multimedia.audio | AudioCapturer | getStreamInfo(callback: AsyncCallback\<AudioStreamInfo>): void;<br>getStreamInfo(): Promise\<AudioStreamInfo>; | Added|
297| ohos.multimedia.audio | AudioCapturer | getCapturerInfo(callback: AsyncCallback\<AudioCapturerInfo>): void;<br>getCapturerInfo(): Promise\<AudioCapturerInfo>; | Added|
298| ohos.multimedia.audio | AudioCapturer | readonly state: AudioState; | Added|
299| ohos.multimedia.audio | AudioCapturerOptions | capturerInfo: AudioCapturerInfo; | Added|
300| ohos.multimedia.audio | AudioCapturerOptions | streamInfo: AudioStreamInfo; | Added|
301| ohos.multimedia.audio | AudioCapturerInfo | capturerFlags: number; | Added|
302| ohos.multimedia.audio | AudioCapturerInfo | source: SourceType; | Added|
303| ohos.multimedia.audio | SourceType | SOURCE_TYPE_VOICE_COMMUNICATION = 7 | Added|
304| ohos.multimedia.audio | SourceType | SOURCE_TYPE_MIC = 0 | Added|
305| ohos.multimedia.audio | SourceType | SOURCE_TYPE_INVALID = -1 | Added|
306| ohos.multimedia.audio | AudioRenderer | on(type: "stateChange", callback: Callback\<AudioState>): void; | Added|
307| ohos.multimedia.audio | AudioRenderer | off(type: "periodReach"): void; | Added|
308| ohos.multimedia.audio | AudioRenderer | on(type: "periodReach", frame: number, callback: (position: number) => {}): void; | Added|
309| ohos.multimedia.audio | AudioRenderer | off(type: "markReach"): void; | Added|
310| ohos.multimedia.audio | AudioRenderer | on(type: "markReach", frame: number, callback: (position: number) => {}): void; | Added|
311| ohos.multimedia.audio | AudioRenderer | getRenderRate(callback: AsyncCallback\<AudioRendererRate>): void;<br>getRenderRate(): Promise\<AudioRendererRate>; | Added|
312| ohos.multimedia.audio | AudioRenderer | setRenderRate(rate: AudioRendererRate, callback: AsyncCallback\<void>): void;<br>setRenderRate(rate: AudioRendererRate): Promise\<void>; | Added|
313| ohos.multimedia.audio | AudioRenderer | getBufferSize(callback: AsyncCallback\<number>): void;<br>getBufferSize(): Promise\<number>; | Added|
314| ohos.multimedia.audio | AudioRenderer | release(callback: AsyncCallback\<void>): void;<br>release(): Promise\<void>; | Added|
315| ohos.multimedia.audio | AudioRenderer | stop(callback: AsyncCallback\<void>): void;<br>stop(): Promise\<void>; | Added|
316| ohos.multimedia.audio | AudioRenderer | pause(callback: AsyncCallback\<void>): void;<br>pause(): Promise\<void>; | Added|
317| ohos.multimedia.audio | AudioRenderer | drain(callback: AsyncCallback\<void>): void;<br>drain(): Promise\<void>; | Added|
318| ohos.multimedia.audio | AudioRenderer | getAudioTime(callback: AsyncCallback\<number>): void;<br>getAudioTime(): Promise\<number>; | Added|
319| ohos.multimedia.audio | AudioRenderer | write(buffer: ArrayBuffer, callback: AsyncCallback\<number>): void;<br>write(buffer: ArrayBuffer): Promise\<number>; | Added|
320| ohos.multimedia.audio | AudioRenderer | start(callback: AsyncCallback\<void>): void;<br>start(): Promise\<void>; | Added|
321| ohos.multimedia.audio | AudioRenderer | getStreamInfo(callback: AsyncCallback\<AudioStreamInfo>): void;<br>getStreamInfo(): Promise\<AudioStreamInfo>; | Added|
322| ohos.multimedia.audio | AudioRenderer | getRendererInfo(callback: AsyncCallback\<AudioRendererInfo>): void;<br>getRendererInfo(): Promise\<AudioRendererInfo>; | Added|
323| ohos.multimedia.audio | AudioRenderer | readonly state: AudioState; | Added|
324| ohos.multimedia.audio | DeviceChangeAction | deviceDescriptors: AudioDeviceDescriptors; | Added|
325| ohos.multimedia.audio | DeviceChangeAction | type: DeviceChangeType; | Added|
326| ohos.multimedia.audio | AudioInterrupt | pauseWhenDucked: boolean; | Added|
327| ohos.multimedia.audio | AudioInterrupt | contentType: ContentType; | Added|
328| ohos.multimedia.audio | AudioInterrupt | streamUsage: StreamUsage; | Added|
329| ohos.multimedia.audio | InterruptAction | activated?: boolean; | Added|
330| ohos.multimedia.audio | InterruptAction | hint?: InterruptHint; | Added|
331| ohos.multimedia.audio | InterruptAction | type?: InterruptType; | Added|
332| ohos.multimedia.audio | InterruptAction | actionType: InterruptActionType; | Added|
333| ohos.multimedia.audio | AudioManager | off(type: 'interrupt', interrupt: AudioInterrupt, callback?: Callback\<InterruptAction>): void; | Added|
334| ohos.multimedia.audio | AudioManager | on(type: 'interrupt', interrupt: AudioInterrupt, callback: Callback\<InterruptAction>): void; | Added|
335| ohos.multimedia.audio | AudioManager | off(type: 'deviceChange', callback?: Callback\<DeviceChangeAction>): void; | Added|
336| ohos.multimedia.audio | AudioManager | on(type: 'deviceChange', callback: Callback\<DeviceChangeAction>): void; | Added|
337| ohos.multimedia.audio | AudioManager | getAudioScene(callback: AsyncCallback\<AudioScene>): void;<br>getAudioScene(): Promise\<AudioScene>; | Added|
338| ohos.multimedia.audio | AudioManager | isDeviceActive(deviceType: ActiveDeviceType, callback: AsyncCallback\<boolean>): void;<br>isDeviceActive(deviceType: ActiveDeviceType): Promise\<boolean>; | Added|
339| ohos.multimedia.audio | AudioManager | setDeviceActive(deviceType: ActiveDeviceType, active: boolean, callback: AsyncCallback\<void>): void;<br>setDeviceActive(deviceType: ActiveDeviceType, active: boolean): Promise\<void>; | Added|
340| ohos.multimedia.audio | AudioManager | getAudioParameter(key: string, callback: AsyncCallback\<string>): void;<br>getAudioParameter(key: string): Promise\<string>; | Added|
341| ohos.multimedia.audio | AudioManager | setAudioParameter(key: string, value: string, callback: AsyncCallback\<void>): void;<br>setAudioParameter(key: string, value: string): Promise\<void>; | Added|
342| ohos.multimedia.audio | AudioManager | getRingerMode(callback: AsyncCallback\<AudioRingMode>): void;<br>getRingerMode(): Promise\<AudioRingMode>; | Added|
343| ohos.multimedia.audio | AudioManager | setRingerMode(mode: AudioRingMode, callback: AsyncCallback\<void>): void;<br>setRingerMode(mode: AudioRingMode): Promise\<void>; | Added|
344| ohos.multimedia.audio | AudioManager | isMicrophoneMute(callback: AsyncCallback\<boolean>): void;<br>isMicrophoneMute(): Promise\<boolean>; | Added|
345| ohos.multimedia.audio | AudioManager | setMicrophoneMute(mute: boolean, callback: AsyncCallback\<void>): void;<br>setMicrophoneMute(mute: boolean): Promise\<void>; | Added|
346| ohos.multimedia.audio | AudioManager | isActive(volumeType: AudioVolumeType, callback: AsyncCallback\<boolean>): void;<br>isActive(volumeType: AudioVolumeType): Promise\<boolean>; | Added|
347| ohos.multimedia.audio | AudioManager | isMute(volumeType: AudioVolumeType, callback: AsyncCallback\<boolean>): void;<br>isMute(volumeType: AudioVolumeType): Promise\<boolean>; | Added|
348| ohos.multimedia.audio | AudioManager | mute(volumeType: AudioVolumeType, mute: boolean, callback: AsyncCallback\<void>): void;<br>mute(volumeType: AudioVolumeType, mute: boolean): Promise\<void>; | Added|
349| ohos.multimedia.audio | AudioScene | AUDIO_SCENE_VOICE_CHAT | Added|
350| ohos.multimedia.audio | AudioScene | AUDIO_SCENE_DEFAULT = 0 | Added|
351| ohos.multimedia.audio | DeviceChangeType | DISCONNECT = 1 | Added|
352| ohos.multimedia.audio | DeviceChangeType | CONNECT = 0 | Added|
353| ohos.multimedia.audio | InterruptActionType | TYPE_INTERRUPT = 1 | Added|
354| ohos.multimedia.audio | InterruptActionType | TYPE_ACTIVATED = 0 | Added|
355| ohos.multimedia.audio | InterruptHint | INTERRUPT_HINT_UNDUCK = 5 | Added|
356| ohos.multimedia.audio | InterruptHint | INTERRUPT_HINT_DUCK = 4 | Added|
357| ohos.multimedia.audio | InterruptHint | INTERRUPT_HINT_STOP = 3 | Added|
358| ohos.multimedia.audio | InterruptHint | INTERRUPT_HINT_PAUSE = 2 | Added|
359| ohos.multimedia.audio | InterruptHint | INTERRUPT_HINT_RESUME = 1 | Added|
360| ohos.multimedia.audio | InterruptHint | INTERRUPT_HINT_NONE = 0 | Added|
361| ohos.multimedia.audio | InterruptType | INTERRUPT_TYPE_END = 2 | Added|
362| ohos.multimedia.audio | InterruptType | INTERRUPT_TYPE_BEGIN = 1 | Added|
363| ohos.multimedia.audio | AudioRendererRate | RENDER_RATE_HALF = 2 | Added|
364| ohos.multimedia.audio | AudioRendererRate | RENDER_RATE_DOUBLE = 1 | Added|
365| ohos.multimedia.audio | AudioRendererRate | RENDER_RATE_NORMAL = 0 | Added|
366| ohos.multimedia.audio | AudioRendererOptions | rendererInfo: AudioRendererInfo; | Added|
367| ohos.multimedia.audio | AudioRendererOptions | streamInfo: AudioStreamInfo; | Added|
368| ohos.multimedia.audio | AudioRendererInfo | rendererFlags: number; | Added|
369| ohos.multimedia.audio | AudioRendererInfo | usage: StreamUsage; | Added|
370| ohos.multimedia.audio | AudioRendererInfo | content: ContentType; | Added|
371| ohos.multimedia.audio | AudioStreamInfo | encodingType: AudioEncodingType; | Added|
372| ohos.multimedia.audio | AudioStreamInfo | sampleFormat: AudioSampleFormat; | Added|
373| ohos.multimedia.audio | AudioStreamInfo | channels: AudioChannel; | Added|
374| ohos.multimedia.audio | AudioStreamInfo | samplingRate: AudioSamplingRate; | Added|
375| ohos.multimedia.audio | StreamUsage | STREAM_USAGE_NOTIFICATION_RINGTONE = 6 | Added|
376| ohos.multimedia.audio | StreamUsage | STREAM_USAGE_VOICE_COMMUNICATION = 2 | Added|
377| ohos.multimedia.audio | StreamUsage | STREAM_USAGE_MEDIA = 1 | Added|
378| ohos.multimedia.audio | StreamUsage | STREAM_USAGE_UNKNOWN = 0 | Added|
379| ohos.multimedia.audio | ContentType | CONTENT_TYPE_RINGTONE = 5 | Added|
380| ohos.multimedia.audio | ContentType | CONTENT_TYPE_SONIFICATION = 4 | Added|
381| ohos.multimedia.audio | ContentType | CONTENT_TYPE_MOVIE = 3 | Added|
382| ohos.multimedia.audio | ContentType | CONTENT_TYPE_MUSIC = 2 | Added|
383| ohos.multimedia.audio | ContentType | CONTENT_TYPE_SPEECH = 1 | Added|
384| ohos.multimedia.audio | ContentType | CONTENT_TYPE_UNKNOWN = 0 | Added|
385| ohos.multimedia.audio | AudioEncodingType | ENCODING_TYPE_RAW = 0 | Added|
386| ohos.multimedia.audio | AudioEncodingType | ENCODING_TYPE_INVALID = -1 | Added|
387| ohos.multimedia.audio | AudioSamplingRate | SAMPLE_RATE_96000 = 96000 | Added|
388| ohos.multimedia.audio | AudioSamplingRate | SAMPLE_RATE_64000 = 64000 | Added|
389| ohos.multimedia.audio | AudioSamplingRate | SAMPLE_RATE_48000 = 48000 | Added|
390| ohos.multimedia.audio | AudioSamplingRate | SAMPLE_RATE_44100 = 44100 | Added|
391| ohos.multimedia.audio | AudioSamplingRate | SAMPLE_RATE_32000 = 32000 | Added|
392| ohos.multimedia.audio | AudioSamplingRate | SAMPLE_RATE_24000 = 24000 | Added|
393| ohos.multimedia.audio | AudioSamplingRate | SAMPLE_RATE_22050 = 22050 | Added|
394| ohos.multimedia.audio | AudioSamplingRate | SAMPLE_RATE_16000 = 16000 | Added|
395| ohos.multimedia.audio | AudioSamplingRate | SAMPLE_RATE_12000 = 12000 | Added|
396| ohos.multimedia.audio | AudioSamplingRate | SAMPLE_RATE_11025 = 11025 | Added|
397| ohos.multimedia.audio | AudioSamplingRate | SAMPLE_RATE_8000 = 8000 | Added|
398| ohos.multimedia.audio | AudioChannel | CHANNEL_2 = 0x1 \<\< 1 | Added|
399| ohos.multimedia.audio | AudioChannel | CHANNEL_1 = 0x1 \<\< 0 | Added|
400| ohos.multimedia.audio | AudioSampleFormat | SAMPLE_FORMAT_S32LE = 3 | Added|
401| ohos.multimedia.audio | AudioSampleFormat | SAMPLE_FORMAT_S24LE = 2 | Added|
402| ohos.multimedia.audio | AudioSampleFormat | SAMPLE_FORMAT_S16LE = 1 | Added|
403| ohos.multimedia.audio | AudioSampleFormat | SAMPLE_FORMAT_U8 = 0 | Added|
404| ohos.multimedia.audio | AudioSampleFormat | SAMPLE_FORMAT_INVALID = -1 | Added|
405| ohos.multimedia.audio | AudioRingMode | RINGER_MODE_NORMAL = 2 | Added|
406| ohos.multimedia.audio | AudioRingMode | RINGER_MODE_VIBRATE = 1 | Added|
407| ohos.multimedia.audio | AudioRingMode | RINGER_MODE_SILENT = 0 | Added|
408| ohos.multimedia.audio | ActiveDeviceType | BLUETOOTH_SCO = 7 | Added|
409| ohos.multimedia.audio | ActiveDeviceType | SPEAKER = 2 | Added|
410| ohos.multimedia.audio | DeviceType | USB_HEADSET = 22 | Added|
411| ohos.multimedia.audio | DeviceType | WIRED_HEADPHONES = 4 | Added|
412| ohos.multimedia.audio | DeviceType | EARPIECE = 1 | Added|
413| ohos.multimedia.audio | AudioVolumeType | VOICE_ASSISTANT = 9 | Added|
414| ohos.multimedia.audio | AudioVolumeType | VOICE_CALL = 0 | Added|
415| ohos.multimedia.audio | AudioState | STATE_PAUSED | Added|
416| ohos.multimedia.audio | AudioState | STATE_RELEASED | Added|
417| ohos.multimedia.audio | AudioState | STATE_STOPPED | Added|
418| ohos.multimedia.audio | AudioState | STATE_RUNNING | Added|
419| ohos.multimedia.audio | AudioState | STATE_PREPARED | Added|
420| ohos.multimedia.audio | AudioState | STATE_NEW | Added|
421| ohos.multimedia.audio | AudioState | STATE_INVALID = -1 | Added|
422| ohos.multimedia.audio | audio | createAudioRenderer(options: AudioRendererOptions, callback: AsyncCallback\<AudioRenderer>): void;<br>createAudioRenderer(options: AudioRendererOptions): Promise\<AudioRenderer>; | Added|
423| ohos.multimedia.audio | audio | createAudioCapturer(options: AudioCapturerOptions, callback: AsyncCallback\<AudioCapturer>): void;<br>createAudioCapturer(options: AudioCapturerOptions): Promise\<AudioCapturer>; | Added|
424