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

  • 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.

主站蜘蛛池模板: 巢湖市| 温泉县| 泗洪县| 黄石市| 福州市| 会宁县| 潞城市| 峡江县| 芒康县| 卓尼县| 紫云| 耿马| 花莲县| 阿拉尔市| 沧源| 乐至县| 同仁县| 丘北县| 屯昌县| 德兴市| 浑源县| 米脂县| 汶上县| 开鲁县| 甘肃省| 凤凰县| 宁化县| 大埔区| 博白县| 连江县| 安塞县| 宁安市| 宜君县| 明水县| 莎车县| 隆安县| 霍州市| 台湾省| 泰来县| 镇沅| 宁远县|