From f71071de9b9135286adeabf08450afe4bc0822b3 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Wed, 21 Aug 2024 10:26:42 +0800 Subject: [PATCH] bugfix --- bricks/rtc.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/bricks/rtc.js b/bricks/rtc.js index 9864347..ccc3201 100644 --- a/bricks/rtc.js +++ b/bricks/rtc.js @@ -96,9 +96,12 @@ bricks.RTCClient = class extends bricks.VBox { menu.bind('command', this.call_peer.bind(this)); this.menu = menu; } - call_peer(event){ + async call_peer(event){ console.log('event params=', event.params); bricks.Body.remove_widget(this.menu); + if (! this.localVideo.get_stream()){ + await this.getLocalVideo(); + } var peer_info = { id:event.params.name, name:event.params.label