Agora Interactive Whiteboard Java API Reference
|
Public Member Functions | |
void | startAudioMixing (String filepath, boolean loopback, boolean replace, int cycle) |
void | stopAudioMixing () |
void | setAudioMixingPosition (int position) |
void | pauseAudioMixing () |
void | resumeAudioMixing () |
The AudioMixerBridge
interface, for bridging the audio mixing method of the Agora RTC SDK and the Interactive Whiteboard SDK.
When you use the Agora RTC SDK and Interactive Whiteboard SDK at the same time, and the dynamic PPT slides displayed in the whiteboard contain audio files, you may encounter the issues of low volume and/or echoes when playing the audio in the PPT slides. To solve these issues, you can use the AudioMixerBridge
interface to call the audio mixing method of the Agora RTC SDK to play the audio files in the dynamic PPT slides.
AudioMixerBridge
interface as well. void com.herewhite.sdk.AudioMixerBridge.startAudioMixing | ( | String | filepath, |
boolean | loopback, | ||
boolean | replace, | ||
int | cycle | ||
) |
Starts playing and mixing the music file.
After calling this method, you need to call setMediaState
to pass the audio mixing state to the dynamic PPT slides.
filepath | The absolute path or URL address (including the filename extensions) of the music file. |
loopback | Whether to only play music files on the local client:
|
replace | Whether to replace the audio collected by the microphone with a music file:
|
cycle | The number of times the music file plays.
|
void com.herewhite.sdk.AudioMixerBridge.stopAudioMixing | ( | ) |
Stops playing or mixing the music file.
void com.herewhite.sdk.AudioMixerBridge.setAudioMixingPosition | ( | int | position | ) |
Sets the playback position of the audio mixing file.
position | The playback position (ms) of the audio mixing file. |
void com.herewhite.sdk.AudioMixerBridge.pauseAudioMixing | ( | ) |
Pauses playing or mixing the music file.
void com.herewhite.sdk.AudioMixerBridge.resumeAudioMixing | ( | ) |
Resumes playing or mixing the music file.