始终接受webRTC网络摄像头请求 [英] always accept webRTC webcam request

查看:130
本文介绍了始终接受webRTC网络摄像头请求的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在构建一个通过webRTC使用计算机网络摄像头的网络应用程序。
该网站只运行在一台特定的机器上,每天关机并重新启动一次。



我的问题是:如何让机器自动一旦网站已经加载,确认网络摄像头对话?



系统是带有最新Chrome的OSX Leopard。感谢您,我为任何事情开放。

解决方案

Chrome有一个选项: <此功能同时适用于 http https

   -  use-fake-ui-for-media-stream 






- Windows:
$ b

  start chrome --use-fake-ui -for-media-stream 

- GNU / Linux:

  google-chrome --use-fake-ui-for-media-stream 

也许这只是时间问题,但它不适用于我在Ubuntu上使用的铬。
我必须从谷歌浏览器网站获取.deb文件。 。



- Mac:

 应用程序/ Google Chrome浏览器/ Chrome应用程序/内容/ MacOS /谷歌Chrome浏览器 - 使用假的用户界面媒体流






这在开发/测试环境中可能很有用。

I'm building a web application that uses the computer's webcam via webRTC. The site is only running on one specific machine which will shut down and reboot once a day.

My problem is: how do I get the machine to automatically confirm the webcam dialogue once the site has loaded?

The system is OSX Leopard with the latest Chrome. Thanks already, I'm open for anything.

解决方案

There is a Chrome option for that: (This works in both http and https)

--use-fake-ui-for-media-stream


- Windows :

start chrome --use-fake-ui-for-media-stream

- GNU/Linux :

google-chrome --use-fake-ui-for-media-stream

Maybe this is just a matter of time, but it didn't work on my chromium on Ubuntu. I had to get the .deb from the google chrome website.

- Mac :

Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --use-fake-ui-for-media-stream


This could be useful in a development/testing environment.

这篇关于始终接受webRTC网络摄像头请求的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆