Another fix for Safari AudioContext
This commit is contained in:
@@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user