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() ]);