web rtc sample

Testing WebRTC on Chrome

getUserMedia

The getUserMedia API lets users grant web apps access to their camera and microphone without a plug-in. This API is now available in Chrome Stable (as of version 21) without the need for any flag.

It has also been tested on Chrome Frame for Internet Explorer users.

The Peer Connection Flag

You can enable WebRTC by enabling the PeerConnection experiment on both Chrome Canary and Dev Channel. Please remember that enabling the flags will keep the feature on until you disable it. 

WebRTC features may change, break, or disappear at any time. We make absolutely no guarantees about what may happen if you turn on this experiment, and your browser may even spontaneously combust. Jokes aside, your browser may delete all your data, or your security and privacy could be compromised in unexpected ways. Enabling WebRTC will enable it for  all users of this browser. Please proceed with caution.

Installing a WebRTC enabled Chrome for Mac / Windows / Linux

Mac

Download a canary build from: http://tools.google.com/dlpage/chromesxs

--or--

Download the Chrome Dev Channel build for Mac OS X.
Install it into Applications as suggested when mounting the .dmg

To enable WebRTC once, from the command line, you will need to run Chrome from terminal.
open -a "/Applications/Google Chrome Canary.app" --args --enable-peer-connection

To keep it WebRTC enabled, you will need to go this address: chrome://flags , Enable the PeerConnection experiments and relaunch as pictured above.

Windows

Download and install canary build from: http://tools.google.com/dlpage/chromesxs

-- or -- 

Download the Chrome Dev Channel build for Windows.

Installer will create a shortcut on your Desktop to the canary build, create another shortcut to that shortcut.
Right-click on the new shortcut,  select properties.
In Target: add --enable-peer-connection at the end (after the quotes).

Click OK and double-click the shortcut to launch Chrome Canary with WebRTC enabled.

To keep it WebRTC enabled, you will need to go this address: chrome://flags , Enable the PeerConnection experiment and relaunch as pictured above.

Linux

There isn't a published canary build for Chrome. You can compile Chromium yourself.
Alternatively, you can install the dev channel from https://sites.google.com/a/chromium.org/dev/getting-involved/dev-channel; this requires you to install the dev channel version in place of your current Chrome installation.

To build your own Chromium browser:

Run from a terminal in your source directory: src/out/Debug/chrome --enable-peer-connection --user-data-dir=<some test directory>

If you don't feel like building Chrome, the Dev Channel instructions are here.

To keep it WebRTC enabled, you will need to go this address:  chrome://flags , Enable the PeerConnection experiments and relaunch as pictured above.

Demos

Here are a couple of demo sites. Most of them were sent to us via the discuss-webrtc list. Please remember that the same disclaimer as above applies:
If you find another demo app, please send it to sergel@webrtc.org / the discuss list or our Google+ Page. We will try to put it up!
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值