提交工单
咨询集成、功能及报价等问题
Audio mixing means that the SDK integrates third-party audio data with the audio data collected by the microphone into an audio stream, so as to play sound effects (such as applause, whistle), custom sounds, music files, etc. During a call or live broadcast, and let Other members in the room can also hear the sound.
Before using audio mixing, please make sure:
After pushing the stream, call the startMixingAudio method to start mixing, and use the "streamID" and "mediaList" (media tag list: "video" or "audio") to mix the audio into the stream being pushed.
const result = zg.startMixingAudio(publishStreamId, [
$('#extenerVideo1')[0],
$('#extenerVideo2')[0],
]);
console.warn('mixed', result);
Call the stopMixingAudio method to stop mixing.
zg.stopMixingAudio(publishStreamId);