A simple tool to quickly spawn a (modified) Chrome instance with fake media devices.
-
Clone it (using HTTPS):
$ git clone https://gist.github.com/0646e1e554fa65c6df43e5393a0d2579.git google-chrome-fake-media
-
Install the necessary packages:
$ cd google-chrome-fake-media $ npm install
-
Run it with a desired URL:
$ ./index.js your-url.com
Google Chrome uses y4m
videos to feed the capture inputs. To convert any mp4
video to y4m
:
$ ffmpeg -i <input_file>.mp4 -pix_fmt yuv420p <output_file>.y4m