Using an external web camera with the PIXILAB Player works straight out of the box. However, using the default player configuration chrome will ask you for permissions using the camera every time you start the player. To avoid this, you need to provide the player with custom chrome policies that will automatically approve camera usage for certain white listed domains. The following steps will show you how to accomplish this using the domain name pixi.guide.(change the domain according to your system)
1. Create a policy textfile chrome-policies.txt and add the following policies to it:
"VideoCaptureAllowed": true, "VideoCaptureAllowedUrls": [ "http://pixi.guide/"], "AudioCaptureAllowed": true, "AudioCaptureAllowedUrls": [ "http://pixi.guide/"], "OverrideSecurityRestrictionsOnInsecureOrigin": [ "http://pixi.guide/"],
2. Copy file to the blocks server in the file PIXILAB-Blocks-root/public/
3. Create a player using the default configuration together with the below parameter added to the end.
browser_preferences=https://pixi.guide/public/chrome-policies.txt
4. Start the player.
Chrome should no longer ask for permission using the camera using the PIXILAB Player.