Hello,
I am researching mediasoup-broadcaster-demo. When I created an audio consumer, how should I get the volume of it?
This is my step:
1 Create a RecvTransport* using Device::CreateRecvTransport();
2 Create a Consumer* using RecvTransport::Consume();
3 Use Consumer::GetTrack() to get a webrtc::AudioTrackInterface* object;
4 Use webrtc::AudioSourceInterface::GetSource() to get a webrtc::AudioSourceInterface* object;
5 Register an AudioSourceInterface::AudioObserver with webrtc::AudioSourceInterface::RegisterAudioObserver();
When I connect to mediasoup-demo, I am able to receive the sound of the remote browser endpoint, but AudioSourceInterface::AudioObserver::OnSetVolume() is not called.
Is there any advice?
Or use another method to get the volume?
In addition, how does libmediasoupclient use mediasoup::AudioLevelObserver?