webcam not working

529 views
Skip to first unread message

kjj...@gmail.com

unread,
Feb 5, 2016, 8:02:07 AM2/5/16
to PHP Desktop
Hi,

I'm trying to develop a HTML5 kiosk application with phpdesktop gui on Windows 10.
I can run the app fullscreen but still cannot access the webcam, nor I'm prompted for allowing access to device. On a XAMPP localhost it works fine, it justs asks for permission to access the webcam once. In Phpdesktop, no way to get it work (and no errors in console).

I basically will need never to be prompted to allow access to device, but as of now it would be good enough to just have it work on PHPDesktopGUI.
Any ideas why it may not work ?

Thanks in advance,

Carlo

Czarek Tomczak

unread,
Feb 5, 2016, 2:22:29 PM2/5/16
to phpde...@googlegroups.com
Have you set the enable-media-stream flag? See
https://github.com/cztomczak/phpdesktop/wiki/Chrome-settings#command_line_switches

Also test with phpdesktop chrome 39 RC
https://github.com/cztomczak/phpdesktop/wiki/DownloadChrome#release-candidates-for-testing

Chrome 47 RC will appear soon.

Try opening phpdesktop site in Chrome, from context menu select "Open
in external browser".
> --
> You received this message because you are subscribed to the Google Groups
> "PHP Desktop" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to phpdesktop+...@googlegroups.com.
> Visit this group at https://groups.google.com/group/phpdesktop.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/phpdesktop/c81444d9-75bd-4803-a009-dd2a9fa73af9%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

kjj...@gmail.com

unread,
Feb 6, 2016, 9:08:12 AM2/6/16
to PHP Desktop
Hi,

thanks for your answer.
Tried with 39 RC but still I cannot access the webcam. Still no error in console either.

Here's my JSON settings if it might help :

{
"application": {
"single_instance_guid": "",
"dpi_aware": true
},
"debugging": {
"show_console": true,
"subprocess_show_console": false,
"log_level": "DEBUG4",
"log_file": "debug.log"
},
"main_window": {
"title": "PHP Desktop Chrome",
"icon": "",
"default_size": [1024, 768],
"minimum_size": [800, 600],
"maximum_size": [0, 0],
"disable_maximize_button": false,
"center_on_screen": true,
"start_maximized": true,
"start_fullscreen": true,
"kiosk": true
},
"popup_window": {
"icon": "",
"fixed_title": "",
"center_relative_to_parent": true,
"default_size": [1024, 768]
},
"web_server": {
"listen_on": ["127.0.0.1", 0],
"www_directory": "www",
"index_files": ["index.html", "index.php"],
"cgi_interpreter": "php/php-cgi.exe",
"cgi_extensions": ["php"],
"cgi_temp_dir": "",
"404_handler": "/pretty-urls.php"
},
"chrome": {
"log_file": "debug.log",
"log_severity": "default",
"cache_path": "webcache",
"external_drag": true,
"external_navigation": true,
"reload_page_F5": true,
"devtools_F12": true,
"remote_debugging_port": 0,
"enable_downloads": true,
"kiosk_enabled": true,
"kiosk_only": true,
"context_menu": {
"enable_menu": true,
"navigation": true,
"print": true,
"view_source": true,
"open_in_external_browser": true,
"devtools": true
},
"command_line_switches": {
"enable-media-stream": ""
}
}
}
-------------
I've also tried "enable-media-stream": true without success.
Any ideas ?
Thanks in advance

Czarek Tomczak

unread,
Feb 6, 2016, 2:21:43 PM2/6/16
to phpde...@googlegroups.com
See https://github.com/cztomczak/phpdesktop/wiki/Knowledge-Base#feature-x-works-in-google-chrome-but-doesnt-work-in-php-desktop-chrome
> --
> You received this message because you are subscribed to the Google Groups
> "PHP Desktop" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to phpdesktop+...@googlegroups.com.
> Visit this group at https://groups.google.com/group/phpdesktop.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/phpdesktop/7007dec9-4bd4-47fc-80c7-ca780e757a34%40googlegroups.com.

Czarek Tomczak

unread,
Feb 6, 2016, 2:23:00 PM2/6/16
to phpde...@googlegroups.com
You have put "command_line_switches" in the wrong place in
settings.json. See
https://github.com/cztomczak/phpdesktop/blob/5823ab0125eca771e7577d23ede40114539306b8/phpdesktop-chrome/settings.json#L51

Czarek Tomczak

unread,
Feb 6, 2016, 2:28:20 PM2/6/16
to phpde...@googlegroups.com
Ahh, sorry, "command_line_switches" is OK.

Run cefclient.exe --enable-media-stream from cefbuilds.com .

kumaroh...@gmail.com

unread,
Aug 10, 2017, 7:46:15 AM8/10/17
to PHP Desktop
my webcam is not supported
and i am not able to Run cefclient.exfile plz help me

daya...@gmail.com

unread,
Dec 3, 2018, 1:32:22 AM12/3/18
to PHP Desktop
"chrome": {
"log_file": "debug.log",
"log_severity": "default",
"cache_path": "webcache",
"external_drag": true,
"external_navigation": true,
"reload_page_F5": true,
"devtools_F12": true,
"remote_debugging_port": 0,
"command_line_switches": {
"enable-media-stream": ""
},
"enable_downloads": true,

wesy...@gmail.com

unread,
Dec 10, 2018, 1:45:58 PM12/10/18
to PHP Desktop
"command_line_switches": {
"enable-media-stream": "",
"enable-system-flash": ""
},

Peter D. Maquiran

unread,
Dec 20, 2018, 6:04:31 AM12/20/18
to PHP Desktop
try to run on wamp or xamp mybe the code it self is the problem
Reply all
Reply to author
Forward
0 new messages