FFmpeg音视频核心技术精讲

你将学到什么

在这一步中,您将了解如何:

  • 使用在Node.js上运行的Socket.IO运行WebRTC信令服务
  • 使用该服务在对等体之间交换WebRTC元数据。

此步骤的完整版本位于step-05文件夹中。

替换HTML和JavaScript

用内存的内容替换 index.html中的内容:

<!DOCTYPE html>
<html>

<head>

  <title>Realtime communication with WebRTC</title>

  <link rel="stylesheet" href="/css/main.css" />

</head>

<body>

  <h1>Realtime communication with WebRTC</h1>

  <div id="videos">
    <video id="localVideo" autoplay muted></video>
    <video id="remoteVideo" autoplay></video>
  </div>

  <script src="/socket.io/socket.io.js"></script>
  <script src="https://webrtc.github.io/adapter/adapter-latest.js"></script>
  <script src="js/main.js"></script>
  
</body>

</html>

学习要趁早,点滴记录,学习就是进步!

不要到处找了,抓紧提升自己。

对于学习有困难不知道如何提升自己可以加 Q群:702101215

下载地址:版权保护,不再提供网络下载地址。

http://www.pplsunny.top

猜你喜欢

转载自blog.csdn.net/cadn_jueying/article/details/83267724