[lib.audio-manager].launch(room_id) takes now an argument + [lib.room-controller].nav('voice') now launches with room_id

This commit is contained in:
xdrm-brackets 2018-04-11 16:13:38 +02:00
parent d21674e5ad
commit d205985305
2 changed files with 3 additions and 3 deletions

View File

@ -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){

View File

@ -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();