搭建flutter-webrtc记录
GitHub地址:
https://github.com/flutter-webrtc/flutter-webrtc-server
https://github.com/flutter-webrtc/flutter-webrtc-demo
https://github.com/FiloSottile/mkcert
1、部署服务端
git clone https://github.com/cloudwebrtc/flutter-webrtc-server.git
cd flutter-webrtc-server
2、安装mkcert
sudo apt install libnss3-tools
git clone https://github.com/FiloSottile/mkcert && cd mkcert
go build -ldflags "-X main.Version=$(git describe --tags)"
3、制作本机证书
mkcert -key-file configs/certs/key.pem -cert-file configs/certs/cert.pem localhost 127.0.0.1 ::1 0.0.0.0
4、运行服务端
go run cmd/server/main.go
5、部署 flutter-webrtc-demo
git clone https://github.com/cloudwebrtc/flutter-webrtc-demo
cd flutter-webrtc-demo
flutter packages get
flutter run