html5 stop sharing screen event

stream.getVideoTracks()[0].addEventListener('ended', () => {     errorMsg('The user has ended sharing the screen');         });

Register for the above event first.

This event is fired when the “Stop Sharing” button is clicked.

The post html5 stop sharing screen event first appeared on Lenix Blog .

This article is reprinted from https://blog.p2hp.com/archives/9762
This site is for inclusion only, and the copyright belongs to the original author.