WebRTC implementation of capturing media via Screen / Window / Application / Webcam
An example demo can be found here
This project uses GO to run a local instance of the server if you wish to not use local file paths
$ GOOS=windows GOARCH=amd64 go build -o server.exe server.go