官术网_书友最值得收藏!

  • Learning WebRTC
  • Dan Ristic
  • 197字
  • 2021-07-16 13:53:42

Using WebRTC in your browser

Now that you know which browser to use, we will jump right in and try out WebRTC right now! Navigate your browser to the demo application available at https://apprtc.appspot.com/. If you use Chrome, Firefox, or Opera, you should see a drop-down notification that looks similar to this:

Click on Allow to start streaming your audio and video input to the web page. You might have to configure your microphone or web camera settings to get them to work. Once you allow browser access to your camera and microphone, you should see a video feed of yourself from your camera.

The page should generate a custom ID for your current session. You should see this reflected in the URL of the page, such as https://apprtc.appspot.com/r/359323927. Simply copy and paste this URL into another browser window, either on your own computer or another one, and load the web page. Now, if everything works correctly, you should see two video feeds—one from your first client and another from the second. It should start to make sense why WebRTC is a powerful solution. This is how easy WebRTC makes real-time communication in the browser.

主站蜘蛛池模板: 德令哈市| 柳州市| 黔西县| 西丰县| 武乡县| 梅州市| 通辽市| 万年县| 丰宁| 珲春市| 会同县| 时尚| 丰县| 仁化县| 泽普县| 浦东新区| 航空| 广平县| 许昌县| 大余县| 凤冈县| 武宣县| 通辽市| 内丘县| 平凉市| 鄯善县| 新宾| 江油市| 宝鸡市| 临潭县| 临高县| 松阳县| 梧州市| 怀安县| 九龙县| 长垣县| 阿城市| 邛崃市| 忻城县| 吉隆县| 竹山县|