AgoraIO / Basic-Video-Call

Sample app to join/leave a channel, mute/unmute, enable/disable the video, and switch between front/rear cameras.
MIT License
697 stars 1.01k forks source link

Screen share feature #298

Open rajajsx opened 3 years ago

rajajsx commented 3 years ago

i have implemented the Agora RTC video call and i tried to implement the screen share functionality with this let defaultConfig = { streamID: uid, audio: true, video: false, screen: true, }; let stream = AgoraRTC.createStream(defaultConfig); and i can able to share the screen of User 1 but, i couldn't get the screen stream in the other User 2 window. can someone help me to fix this issue, thanks in advance.

plutoless commented 3 years ago

after you create the stream, you will need to publish it in order to make it visible to other users.