OpenAgoraWeb-React
OpenAgoraWeb-React copied to clipboard
Video call have no voice on mac 2016+ models on first page load
I am facing a problem at safari 11+
I have tried to add stream.setAudioVolume(100) at stream-subscribed but nothing helps out for safari so far
following is my stream-subscribed callback
rt.client.on('stream-subscribed', (evt) => {
let stream = evt.stream;
stream.setAudioVolume(100);
rt.addStream(stream);
});
and my stream initialize method
streamInit = (uid, attendeeMode, videoProfile, config) => {
let defaultConfig = {
streamID: uid,
audio: true,
video: true,
screen: false,
};
switch (attendeeMode) {
case 'audio-only':
defaultConfig.video = false;
break;
case 'audience':
defaultConfig.video = false;
defaultConfig.audio = false;
break;
default:
case 'video':
break;
}
let stream = AgoraRTC.createStream(merge(defaultConfig, config));
stream.setVideoProfile(videoProfile);
return stream;
};
It is working fine at page reload
I am using "agora-rtc-sdk": "^3.1.2".
any other audio events used to sort this issue out?
@Bilal-Abbas-Gigalabs sorry for late reply. could you pls try this demo to see if it works for you or not?