Another fix for Safari AudioContext

master
Håvar Aambø Fosstveit 2019-04-04 08:32:51 +02:00
parent 2e09cc76d7
commit 417f7ec3e8
1 changed files with 4 additions and 2 deletions

View File

@ -36,6 +36,10 @@ const VIDEO_CONSTRAINS =
let store; let store;
const AudioContext = window.AudioContext // Default
|| window.webkitAudioContext // Safari and old versions of Chrome
|| false;
export default class RoomClient export default class RoomClient
{ {
/** /**
@ -144,8 +148,6 @@ export default class RoomClient
this._startKeyListener(); this._startKeyListener();
this._audioContext = null;
this.join(); this.join();
} }