diff --git a/app/src/RoomClient.js b/app/src/RoomClient.js index 7cbb58c..48627c6 100644 --- a/app/src/RoomClient.js +++ b/app/src/RoomClient.js @@ -144,13 +144,7 @@ export default class RoomClient this._doneJoining = false; // Our WebTorrent client - this._webTorrent = this._torrentSupport && new WebTorrent({ - tracker : { - rtcConfig : { - iceServers : ROOM_OPTIONS.turnServers - } - } - }); + this._webTorrent = null; // Max spotlights if (device.bowser.ios || device.bowser.mobile || device.bowser.android) @@ -1203,6 +1197,14 @@ export default class RoomClient this._torrentSupport = WebTorrent.WEBRTC_SUPPORT; + this._webTorrent = this._torrentSupport && new WebTorrent({ + tracker : { + rtcConfig : { + iceServers : ROOM_OPTIONS.turnServers + } + } + }); + this._screenSharing = ScreenShare.create(this._device); this._signalingSocket = io(this._signalingUrl);