WebRTC实时通信系列教程2 概述

来源:互联网 发布:怎样制作app软件 编辑:程序博客网 时间:2024/05/19 18:37

【转载请注明出处: http://blog.csdn.net/leytton/article/details/76696521】

 PS:如果本文对您有帮助,请点个赞让我知道哦~微笑

《WebRTC实时通信系列教程》翻译自《Real time communication with WebRTC》

示例代码下载http://download.csdn.net/detail/leytton/9923708

WebRTC实时通信系列教程1 介绍

WebRTC实时通信系列教程2 概述

WebRTC实时通信系列教程3 获取示例代码

WebRTC实时通信系列教程4 从摄像头获取视频流

WebRTC实时通信系列教程5 RTCPeerConnection传输视频

WebRTC实时通信系列教程6 使用RTCDataChannel传输数据

WebRTC实时通信系列教程7 使用Socket.IO搭建信令服务器交换信息

WebRTC实时通信系列教程8 打通P2P连接和信令通信

WebRTC实时通信系列教程9 数据通道图片传输

WebRTC实时通信系列教程10 恭喜完成本系列课程


一、译文


创建一个应用来获取摄像头视频拍照并通过WebRTC点对点分享. 你将学习使用核心WebRTC接口,并用Node创建一个消息服务器.

1、你将会学到

  • 获取你的网络摄像头视频
  • 使用RTCPeerConnection传输视频
  • 使用RTCDataChannel传输数据
  • 创建信令服务来交换消息
  • 结合点对点连接和信令传输
  • 拍照并通过数据通道传输

2、需要准备的东西

  • Chrome 47 版或以上
  • Web Server for Chrome chrome扩展插件, 或者使用你自己的服务器.
  • 示例代码
  • 文本编辑器
  • HTML, CSS 和 JavaScript 基础



二、原文

摘自https://codelabs.developers.google.com/codelabs/webrtc-web/#1


2Overview

Build an app to get video and take snapshots with your webcam and share them peer-to-peer via WebRTC. Along the way you'll learn how to use the core WebRTC APIs and set up a messaging server using Node.

What you'll learn

  • Get video from your webcam
  • Stream video with RTCPeerConnection
  • Stream data with RTCDataChannel
  • Set up a signaling service to exchange messages
  • Combine peer connection and signaling
  • Take a photo and share it via a data channel

What you'll need

  • Chrome 47 or above
  • Web Server for Chrome, or use your own web server of choice.
  • The sample code
  • A text editor
  • Basic knowledge of HTML, CSS and JavaScript

原创粉丝点击