logo
On this page

How to mix the audio from media player playback into the published stream?

2023-03-16
Products / Plugins:Video Call
Platform / Framework:All

There are two methods: (choose one)

  • Method 1: Through the enableAux interface, enable the media player audio mixing function to mix the media player audio into the main published stream. (Only supports mixing into the main stream)

  • Method 2: Through the enableCustomAudioIO interface (parameter channel select "ZegoPublishChannelAux", parameter config configure sourceType as "ZegoAudioSourceTypeMediaPlayer"), enable auxiliary custom audio capture, and set the audio capture source to the media player to mix the media player audio into the auxiliary published stream. (Only supports configuring auxiliary stream)

Previous

On the Web platform, when only previewing the published stream without playing streams, there is noise/howling. How to handle this?

Next

When publishing a stream, after calling the "enableTrafficControl" method to enable traffic control, why does only the main stream trigger the traffic control policy when the network quality is poor?