this looks very similar to this webrtc sample by muaz khan: https://www.webrtc-experiment.com/Pluginfree-Screen-Sharing/...
If you use his code you should reference him
If you use his code you should reference him
As of this is just a blatant ripoff of someone else's work.