Commit ba7528f4 authored by 957dd's avatar 957dd

优化了游览器授权问题

parent 05c82e63
[10315:10353:0317/095131.251085:ERROR:ssl_client_socket_impl.cc(985)] handshake failed; returned -1, SSL error code 1, net_error -101
No preview for this file type
...@@ -25,7 +25,7 @@ int opencamsh() ...@@ -25,7 +25,7 @@ int opencamsh()
sprintf(urls,"%s%s",url,TOPIC3); sprintf(urls,"%s%s",url,TOPIC3);
//setenv("DISPLAY", ":0", 1);//设置环境变量https://jywy.yd-ss.com?dev=controcar0004 --new-window sudo //setenv("DISPLAY", ":0", 1);//设置环境变量https://jywy.yd-ss.com?dev=controcar0004 --new-window sudo
sprintf(gwebcam,"su - orangepi chromium-browser %s",urls); sprintf(gwebcam,"su - orangepi -c \"chromium-browser --use-fake-ui-for-media-stream %s\"",urls);
system(gwebcam); system(gwebcam);
printf("%s\n",gwebcam); printf("%s\n",gwebcam);
printf("open cam\n"); printf("open cam\n");
......
No preview for this file type
No preview for this file type
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment