samples README

The project's README from github.com/webrtc/samples. As one markdown file: README.md.

WebRTC Code Samples

This is a repository for the WebRTC JavaScript code samples. All of the samples can be tested from webrtc.github.io/samples.

To run the samples locally

npm install && npm start

and open your browser on the page indicated.

Contributing

We welcome contributions and bugfixes. Please see CONTRIBUTING.md for details.

Bugs

If you encounter a bug or problem with one of the samples, please submit a new issue so we know about it and can fix it.

Please avoid submitting issues on this repository for general problems you have with WebRTC. If you have found a bug in the WebRTC APIs, please see webrtc.org/bugs for how to submit bugs on the affected browsers. If you need support on how to implement your own WebRTC-based application, please see the discuss-webrtc Google Group.

samples (webrtc/samples)

Searching Database…

14.6K ·GitHub
这是什么?这是 WebRTC JavaScript 代码示例的官方合集,演示如何使用 WebRTC API 在浏览器中实现实时音频、视频和数据通信。
这是一个库,还是一堆独立的演示?它是一组独立的演示页面,每个页面对应一项 WebRTC 功能,而不是可以导入到你应用中的打包库。
我该如何在本地运行这些示例?使用提供的 npm start 脚本启动本地服务器,然后在浏览器中打开你想试用的页面;也可以直接访问托管版本 webrtc.github.io/samples。
试用这些示例需要什么特殊的后端或账号吗?大多数示例不需要后端或 API 密钥;它们依赖浏览器原生的 WebRTC API,不过有些示例可能因摄像头/麦克风权限限制而需要本地 HTTP 服务器。
这些示例在哪里运行?它们完全在网页浏览器中运行。
这个仓库是否由 Google 或 WebRTC 项目积极维护?是的,它托管在官方的 webrtc GitHub 组织下,并有 CI 工作流(interop-tests.yml、test.yml)针对它运行。
Creator
webrtc
Size
18 MB
Stars
14.6K
Updated
CommitJul 14
Age
13y
Commits · 90 Days