Fix for AudioContext not existing in Safari
This commit is contained in:
@@ -999,6 +999,7 @@ export default class RoomClient
|
||||
logger.debug('resumeAudio()');
|
||||
try
|
||||
{
|
||||
if (AudioContext)
|
||||
await this._audioContext.resume();
|
||||
|
||||
store.dispatch(
|
||||
@@ -1508,6 +1509,8 @@ export default class RoomClient
|
||||
}
|
||||
});
|
||||
|
||||
if (AudioContext)
|
||||
{
|
||||
this._audioContext = new AudioContext();
|
||||
|
||||
// We need to provoke user interaction to get permission from browser to start audio
|
||||
@@ -1516,6 +1519,7 @@ export default class RoomClient
|
||||
store.dispatch(stateActions.setAudioSuspended({ audioSuspended: true }));
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (error)
|
||||
{
|
||||
logger.error('_setMicProducer() failed:%o', error);
|
||||
|
||||
Reference in New Issue
Block a user