Video sharing like screen sharing

Hello All

its good feature to serve video from url or from local and show it like screen sharing
How i can achieve something like that ?

Tip: how to share any video on a Jitsi session

Thanks for replying
this describe how you can replace camera and audio stream from the source
what is I need to do is replacing camera with video stream using javascript