[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:
parent
d21674e5ad
commit
d205985305
|
@ -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){
|
||||
|
|
|
@ -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();
|
||||
|
||||
|
|
Loading…
Reference in New Issue