Screen sharing and video conference

How to share screen in video call to shows other user. As well as how to record video call with audio and store in gallery.
I found many examples but not available.

I was try to getmeadiastream but only open start recording pop up nothing else

Thank you

You can use the Screen Capture API, available for most browsers.

Using the Screen Capture API - Web APIs | MDN (mozilla.org)