screen share by default button disable agora
1
To close this bar you can use a track-ended event. Here the track is the instance of
await AgoraRTC.createScreenVideoTrack.
rtc.track.on('track-ended', () => {
console.log('stopScreenSharing')
})