This commit is contained in:
yumoqing 2024-08-21 14:36:07 +08:00
parent 423aa607ba
commit 4ec9d19adb

View File

@ -268,9 +268,7 @@ bricks.RTCClient = class extends bricks.VBox {
async createPeerConnection(to_info) { async createPeerConnection(to_info) {
this.phone.set_state('using'); this.phone.set_state('using');
this.peer_w.set_text(to_info.name); this.peer_w.set_text(to_info.name);
if (! this.localVideo.get_stream()){
await this.getLocalStream(); await this.getLocalStream();
}
const configuration = { const configuration = {
iceServers: [ iceServers: [
{ urls: this.ice_url }, { urls: this.ice_url },