视频聊天实例

Abstract

视频聊天实例

Authors

Walter Fan

Status

WIP as draft

Updated

2024-08-21

总体设计

components

  1. a web application contains * room name * user name * join button * leave button * open camera/mic button * close camera/mic button * roster list: attendee name, attendee video, attendee message

  2. signal server * http service * websocket service * room management * roster management: accept, reject, expel attendee

  3. turn server leverage coturn

  4. media server * dtls and srtp service * switch RTP packets among the attendeess in a room

快速实现

对于 P2P 应用,我们可以只实现 1 和 2, 省略掉 3 和 4

我写了一个小例子 - https://github.com/walterfan/webrtc_video_chat 用的是比较陈旧的 Javascript 语法, 未来有时间改写为 ES6 语法