{ deviceRoleValue = value.deviceRole; deviceTypeValue = value.deviceType; } var deviceRoleValue = null; var deviceTypeValue = null; const promise = audio.getAudioManager().getDevices(1); promise.then(function (value) { console.info('AudioFrameworkTest: Promise: getDevices OUTPUT_DEVICES_FLAG...
ohos.multimedia.media VideoPlayer on(type: ‘audioInterrupt’, callback: (info: audio.InterruptEvent) => void): void; Added ohos.multimedia.media VideoPlayer selectBitrate(bitrate: number): Promise<number>;selectBitrate(bitrate: number, callback: AsyncCallback<number>): void; Added ohos.multi...
JS API Changes of the Multimedia Subsystem The table below lists the APIs changes of the multimedia subsystem in OpenHarmony 3.2 Beta3 over OpenHarmony 3.2 Beta2. API Changes
audio.createAudioRenderer(audioRendererOptions).then((data) => { audioRenderer = data; console.info('AudioFrameworkRenderLog: AudioRenderer Created : Success : Stream Type: SUCCESS'); }).catch((err: BusinessError) => { console.error(`AudioFrameworkRenderLog: AudioRenderer Created : ERROR : $...
harmony 鸿蒙JS API Changes of the Multimedia Subsystem JS API Changes of the Multimedia Subsystem The table below lists the APIs changes of the multimedia subsystem in OpenHarmony 3.2 Beta2 over OpenHarmony 3.2 Beta1. API Changes