资讯专栏INFORMATION COLUMN

Webrtc Example Applications

wangshijun / 2689人阅读

WebRTC contains several example applications, which can be found under src/webrtc/examples and src/talk/examples. Higher level applications are listed first.

Peerconnection

Peerconnection consist of two applications using the WebRTC Native APIs:

A server application, with target name peerconnection_server

A client application, with target name peerconnection_client (not currently supported on Mac/Android)

The client application has simple voice and video capabilities. The server enables client applications to initiate a call between clients by managing signaling messages generated by the clients.

Setting up P2P calls between peerconnection_clients

Start peerconnection_server. You should see the following message indicating that it is running:

Server listening on port 8888

Start any number of peerconnection_clients and connect them to the server. The client UI consists of a few parts:

Connecting to a server: When the application is started you must specify which machine (by IP address) the server application is running on. Once that is done you can press Connect or the return button.

Select a peer: Once successfully connected to a server, you can connect to a peer by double-clicking or select+press return on a peer’s name.

Video chat: When a peer has been successfully connected to, a video chat will be displayed in full window.

Ending chat session: Press Esc. You will now be back to selecting a peer.

Ending connection: Press Esc and you will now be able to select which server to connect to.

Testing peerconnection_server

Start an instance of peerconnection_server application.

Open src/webrtc/examples/peerconnection/server/server_test.html in your browser. Click Connect. Observe that the peerconnection_server announces your connection. Open one more tab using the same page. Connect it too (with a different name). It is now possible to exchange messages between the connected peers.

文章版权归作者所有,未经允许请勿转载,若此文章存在违规行为,您可以联系管理员删除。

转载请注明本文地址:https://www.ucloud.cn/yun/9516.html

相关文章

  • 那些 audio api的事 (一) AudioContext

    摘要:高动态范围,采用进行内部处理。这最大限度地减少体积骤降音频区域之间,从而导致更均匀的交叉衰减,可能是在电平略有不同区域之间。低通滤波器保持较低的频率范围,但丢弃高频。 引用 Getting Started with Web Audio APIhttp://www.html5rocks.com/en/tutorials/webaudio/intro/ Introduction Audio...

    沈俭 评论0 收藏0
  • 基于 WebRTC 构建 Web SIP Phone

    摘要:年月,被正式批准成为信号协议之一,并成为体系结构的一个永久单元。与一样,是用于最主要的信令协议之一。一般来说,要么使用实体话机,要么在系统上安装基于的客户端程序。实体话机硬件成本高,基于的客户端往往兼容性差,无法跨平台,易被杀毒软件查杀。 0 阅前须知 本文并不是教程,只是实现方案 我只是从WEB端考虑这个问题,实际还需要后端sip服务器的配合 jsSIP有个非常不错的在线demo,...

    Moxmi 评论0 收藏0
  • MacOS 下 XAMPP配置基于域名的虚拟主机

    摘要:第一步在的打开文件然后搜索去掉前边的注释符号第二步在的打开文件打开了配置虚拟主机的文件后就可以配置你需要的虚拟主机了。 第一步 在 MAC 的 /Applications/XAMPP/xamppfiles/etc 打开 httpd.conf 文件. 然后搜索 httpd-vhosts.conf 去掉前边的 # 注释符号 showImg(https://segmentfault.com/...

    高胜山 评论0 收藏0
  • 【译】通过JavaScript发送表单

    摘要:能异步地发送任意数据的技术称为,表示异步的和。若你使用,使用发送表单还会影响同源策略,并导致内容被发送到一个无法访问的中。但要手动发送二进制数据的话,还有很多额外工作要做。用来发送二进制是很直接的,使用方法就好了。 系列文章说明 原文 在[发送表单数据]()一文中,HTML表单可以声明式地发送一个HTTP请求。但表单也可以用JavaScript来准备一个HTTP请求。本文将探索如何...

    chinafgj 评论0 收藏0
  • 【译】通过JavaScript发送表单

    摘要:能异步地发送任意数据的技术称为,表示异步的和。若你使用,使用发送表单还会影响同源策略,并导致内容被发送到一个无法访问的中。但要手动发送二进制数据的话,还有很多额外工作要做。用来发送二进制是很直接的,使用方法就好了。 系列文章说明 原文 在[发送表单数据]()一文中,HTML表单可以声明式地发送一个HTTP请求。但表单也可以用JavaScript来准备一个HTTP请求。本文将探索如何...

    qylost 评论0 收藏0

发表评论

0条评论

wangshijun

|高级讲师

TA的文章

阅读更多
最新活动
阅读需要支付1元查看
<