Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
blocks:porteus_kiosk:using_web_cam [2019-05-10 10:05]
max created
— (current)
Line 1: Line 1:
-====== Using a camera with the PIXILAB Player ====== 
  
-Using an external web camera with the PIXILAB Player works straight out of the box. However, 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. This following steps  will show you how to accomplish this using the domain name pixi.guide. 
- 
-**1. Create PIXILAB-Blocks-root/public/chrome-policies.txt and add the following policies to it:** 
- 
-<code> 
-"AllowFileSelectionDialogs": false, 
-"AllowOutdatedPlugins": true, 
-"AlternateErrorPagesEnabled": false, 
-"AlwaysOpenPdfExternally": false, 
-"AutofillAddressEnabled": true, 
-"AutoplayAllowed": true, 
-"BackgroundModeEnabled": false, 
-"BlockThirdPartyCookies": false, 
-"BookmarkBarEnabled": true, 
-"BrowserAddPersonEnabled": false, 
-"BrowserGuestModeEnabled": false, 
-"BrowserSignin": 0, 
-"CloudPrintSubmitEnabled": false, 
-"DefaultBrowserSettingEnabled": false, 
-"DefaultCookiesSetting": 1, 
-"DefaultImagesSetting": 1, 
-"DefaultJavaScriptSetting": 1, 
-"DefaultGeolocationSetting": 3, 
-"DefaultMediaStreamSetting": 3, 
-"DefaultNotificationsSetting": 3, 
-"DefaultPluginsSetting": 1, 
-"DefaultPopupsSetting": 2, 
-"DefaultSearchProviderEnabled": true, 
-"DefaultSearchProviderName": "Google", 
-"DefaultSearchProviderSearchURL": "{google:baseURL}search?q={searchTerms}", 
-"DeveloperToolsAvailability": 2, 
-"DisablePrintPreview": false, 
-"DisableSafeBrowsingProceedAnyway": false, 
-"DisableScreenshots": true, 
-"DownloadDirectory": "/dev/null", 
-"EditBookmarksEnabled": true, 
-"EnableMediaRouter": false, 
-"ExtensionInstallBlacklist": ["*"], 
-"FullscreenAllowed": true, 
-"HideWebStoreIcon": true, 
-"HomepageIsNewTabPage": false, 
-"IncognitoModeAvailability": 1, 
-"MetricsReportingEnabled": false, 
-"PasswordManagerEnabled": false, 
-"PluginsAllowedForUrls": [ "http://*", "https://*", ], 
-"PrintingEnabled": false, 
-"PromotionalTabsEnabled": false, 
-"ProxyMode": "system", 
-"QuicAllowed": false, 
-"RunAllFlashInAllowMode": true, 
-"SafeBrowsingEnabled": false, 
-"SafeBrowsingExtendedReportingOptInAllowed": false, 
-"SearchSuggestEnabled": false, 
-"ShowAppsShortcutInBookmarkBar": true, 
-"ShowHomeButton": true, 
-"SpellCheckServiceEnabled": true, 
-"SyncDisabled": false, 
-"TranslateEnabled": false, 
-"UrlKeyedAnonymizedDataCollectionEnabled": false, 
-"ExtensionInstallWhitelist": [ "aapocclcgogkmnckokdopfmhonfmgoek", "aohghmighlieiainnegkcijnfilokake", "apdfllckaahabafndbhieahigkjlhalf", "blpcfgokakmgnkcojhhkbfbldkacnbeo", "felcaaldnbdncclmgdcncolpebgiejap", "pjkljhegncpnkpknbcohdijeoejaedia",], 
-"URLBlacklist": [ "chrome://*", "file://*",], 
-"URLWhitelist": [ "chrome://apps", "chrome://chrome-signin", "chrome://newtab", "chrome://version",], 
-"VideoCaptureAllowed": true, 
-"VideoCaptureAllowedUrls": [ "https://pixi.guide/",], 
-</code> 
- 
- 
-**2. Create a player using the [[https://int.pixilab.se/docs/blocks/porteus_kiosk#automatic_configuration|default configuration]] together with the below parameter added to the end.** 
- 
-<code>browser_preferences=https://pixi.guide/public/chrome-policies.txt</code> 
- 
- 
-**3. Start the player.** 
- 
- 
-Chrome should no longer ask for permission using the camera using the PIXILAB Player.