From d205985305c4dfc4f4e6bbc91ef9b5a26aa45969 Mon Sep 17 00:00:00 2001 From: xdrm-brackets Date: Wed, 11 Apr 2018 16:13:38 +0200 Subject: [PATCH] [lib.audio-manager].launch(room_id) takes now an argument + [lib.room-controller].nav('voice') now launches with room_id --- parcel/lib/audio-manager.js | 4 ++-- parcel/lib/room-controller.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/parcel/lib/audio-manager.js b/parcel/lib/audio-manager.js index 13b206c..c2569f3 100644 --- a/parcel/lib/audio-manager.js +++ b/parcel/lib/audio-manager.js @@ -433,10 +433,10 @@ export default class AudioManager{ /* (9) Access microphone + launch all * ---------------------------------------------------------*/ - launch(wsAddress='wss://ws.douscord.xdrm.io/audio/2'){ + launch(room_id=0){ /* (1) Start websocket */ - this.wsconnect(wsAddress); + this.wsconnect(`wss://ws.douscord.xdrm.io/audio/${room_id}`); /* (2) Set our streaming binding function */ let streaming_binding = function(stream){ diff --git a/parcel/lib/room-controller.js b/parcel/lib/room-controller.js index 63c1505..935b98d 100644 --- a/parcel/lib/room-controller.js +++ b/parcel/lib/room-controller.js @@ -54,7 +54,7 @@ export default class RoomController{ if( type === 'voice' ){ if( typeof this[type].current === 'number' ) - AudioManager.launch(); + AudioManager.launch(this[type].current); else AudioManager.kill();