Hi,
I am working on screen sharing. I successfully implemented screen sharing but stopped sharing not working. Below method i am using
var OV = new OpenVidu();
this.OV.initPublisherAsync('video-container',{
videoSource: "screen"
}).then(publisher => {
publisher.stream.getMediaStream().getVideoTracks()[0].addEventListener('ended', () => {
console.log('User pressed the "Stop sharing" button');
});
});