Skip to content
This repository has been archived by the owner on Aug 12, 2022. It is now read-only.

januwA/live-video-example

Repository files navigation

LiveVideoExample

Run Client

λ ng s -o --port 4200 --host 0.0.0.0
λ ng s -o --port 4300 --host 0.0.0.0

开启一个客户端http://localhost:4200/, -o选项自动打开浏览器, --port选项指定端口号

Run Server

λ ng s api

访问http://localhost:3333/api/hello

需要的依赖(当然我已经装好了)

λ npm i --save @nestjs/websockets @nestjs/platform-socket.io

λ npm i --save socket.io
λ npm i --save-dev @types/socket.io

λ npm i socket.io-client // 客户端
λ npm i -D @types/socket.io-client

λ npm install webrtc-adapter // 对WebRTC的API进行适配器插件

λ npm install -D @types/dom-mediacapture-record  // MediaRecorder类的说明文件

https

ngrok http 4200

About

webRTC p2p 聊天

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published