Hi,
Please check below screenshots. When we tap on browser stop share button, screen sharing stopped but video state still stay on… and showing blank black screen.
Below screenshot is start screen share.
Below screeshot is stop screenshare with browser stop button. At this time you observe still openvidu screenshare button is enabled. but screenshare closed and black empty screen shows. Again we tap on openvidu stop sreenshare icon then empty black screen gone.
I also use this way but not working.
https://docs.openvidu.io/en/2.14.0/advanced-features/screen-share/#how-to-know-when-the-user-stops-sharing-the-screen
I used below both ways