页面显示:
400 Bad Request
Sec-WebSocket-Key not found.
This is a WebSocket service and can not be accessed via HTTP.
server配置:
server {
listen 80;
server_name domain.com;
access_log off;
index index.html index.htm index.php;
include /usr/local/nginx/conf/none.conf;
root /data/wwwroot/live-camera;
location ~ \.php(/|$) {
#fastcgi_pass remote_php_ip:9000;
fastcgi_pass unix:/dev/shm/php-cgi.sock;
fastcgi_index index.php;
include fastcgi.conf;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
}
location ~ .*\.(gif|jpg|jpeg|png|bmp|swf|flv|ico)$ {
expires 30d;
access_log off;
}
location ~ .*\.(js|css)?$ {
expires 7d;
access_log off;
}
}
help qwq
按照教程来,不用配置nginx
解决啦~谢谢qwq
http://www.workerman.net/camera
嗯,按照教程来就3步,下载;运行;访问;不能再简单了
我调用摄像头的js都报错啊,你说尴尬不
navigator.getUserMedia({video:true, audio:false}, success, console.log);