From e02daf516c33b3584ba97ca059638e26dd9d72a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=9D=E5=86=AC?= Date: Thu, 21 Jan 2021 17:51:26 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=B1=8F=E5=B9=95=E5=85=B1?= =?UTF-8?q?=E4=BA=AB=20DEMO?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Demo/shareTheScreen/shareTheScreen.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Demo/shareTheScreen/shareTheScreen.js b/Demo/shareTheScreen/shareTheScreen.js index 3631aef..118833b 100644 --- a/Demo/shareTheScreen/shareTheScreen.js +++ b/Demo/shareTheScreen/shareTheScreen.js @@ -60,11 +60,10 @@ async function join() { client.on("user-unpublished", handleUserUnpublished); // join a channel and create local tracks, we can use Promise.all to run them concurrently - [ options.uid, localTracks.audioTrack, localTracks.videoTrack ] = await Promise.all([ + [ options.uid, localTracks.videoTrack ] = await Promise.all([ // join the channel client.join(options.appid, options.channel, options.token || null, options.uid), // ** create local tracks, using microphone and screen - ArRTC.createMicrophoneAudioTrack(), ArRTC.createScreenVideoTrack() ]);