This commit is contained in:
yumoqing 2024-08-21 10:26:42 +08:00
parent 020cce8c8d
commit f71071de9b

View File

@ -96,9 +96,12 @@ bricks.RTCClient = class extends bricks.VBox {
menu.bind('command', this.call_peer.bind(this)); menu.bind('command', this.call_peer.bind(this));
this.menu = menu; this.menu = menu;
} }
call_peer(event){ async call_peer(event){
console.log('event params=', event.params); console.log('event params=', event.params);
bricks.Body.remove_widget(this.menu); bricks.Body.remove_widget(this.menu);
if (! this.localVideo.get_stream()){
await this.getLocalVideo();
}
var peer_info = { var peer_info = {
id:event.params.name, id:event.params.name,
name:event.params.label name:event.params.label