Screen Share Using the WebRTC (WHIP) URL

Hey there,
I am currently using https://github.com/cloudflare/workers-sdk/blob/main/templates/stream/webrtc/src/whip.html for streaming. However, I want to allow users to share their screens or webcams. Is it possible to use WebRTC for this purpose? If so, please provide me with some documentation to help me achieve this.

After numerous attempts, I cannot record the video using WebRTC as this https://prnt.sc/NazCRgrdtktU kind of blank entry is created without video. Can WebRTC record video?