Skip to content

Commit

Permalink
更新屏幕共享 DEMO
Browse files Browse the repository at this point in the history
  • Loading branch information
DyncMark committed Jan 21, 2021
1 parent 42b2251 commit e02daf5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Demo/shareTheScreen/shareTheScreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -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()
]);

Expand Down

0 comments on commit e02daf5

Please sign in to comment.