mediasoup安装使用

https://mediasoup.org/github/

Check out some projects and examples using mediasoup, mediasoup-client and libmediasoup client in the Examples section.

https://mediasoup.org/documentation/examples/

mediasoup3-record-demo 简单的音频/视频记录应用程序使用媒体和GStreer或FFmpeg

https://github.com/ethand91/mediasoup3-record-demo.git

具有最简单的信令的示例代码,以及尽可能少的依赖项,用于跨浏览器测试

https://github.com/daily-co/mediasoup-sandbox/tree/master/single-page

包含mediasoup+Kurento集成项目。

https://github.com/Kurento/mediasoup-demos

mediasoup-demo

https://github.com/versatica/mediasoup-demo

haiyangwu/mediasoup-demo-android   mediasoup-client-android based Android app to connect to the mediasoup demo

https://github.com/haiyangwu/mediasoup-demo-android

基于libmediasoupClient的C++应用程序,生成系统麦克风和摄像头到mediasoup demo.。

https://github.com/versatica/mediasoup-broadcaster-demo/

mediasoup-website  The mediasoup project website at https://mediasoup.org.

https://github.com/versatica/mediasoup-website/

libmediasoupclient 基于libwebrtc的C++库。

https://github.com/versatica/libmediasoupclient/

handler for aiortc Python library.

https://github.com/versatica/mediasoup-client-aiortc.git

使用mediasoup的其他公共项目可在GitHub.

https://github.com/versatica/mediasoup/network/dependents

 

mediasoup-demo 实践

https://blog.csdn.net/aggresss/article/details/104858479

基于mediasoup的多方通话研究(一)

https://blog.csdn.net/gupar/article/details/83788934

nodejs安装

https://blog.csdn.net/sun007700/article/details/107693557

npm config ls

$ git clone https://github.com/versatica/mediasoup-demo.git
$ cd mediasoup-demo

$ cd server
$ npm install
报错gyp ERR! configure error 

npm i --unsafe-perm
npm install


$ cp config.example.js config.js


$ cd app
$ npm install

$ npm install -g gulp-cli
npm install -g gulp


$ cd server
npm start  或者  DEBUG="*mediasoup* *ERROR* *WARN*" node server.js


debug  server 如下执行

DEBUG="*mediasoup* *ERROR* *WARN*" node server.js

npm install pm2 -g
#后台运行
pm2 start server.js   
pm2 list
pm2 logs  server


npm run connect





 cd app
npm start 或者 gulp live


报错Error: ENOENT: no such file or directory, open '/home/test/code/mediasoup-demo/server/certs/privkey.pem'

证书生成参考
https://github.com/aggresss/playground-cpp/blob/master/certs/autogen.sh

export HTTPS_CERT_FULLCHAIN="XXX"
export HTTPS_CERT_PRIVKEY="YYY"
其中 XXX 为证书的路径,YYY 为对应证书密钥的路径

export MEDIASOUP_LISTEN_IP="X.X.X.X"
export MEDIASOUP_ANNOUNCED_IP="Y.Y.Y.Y"
其中 X.X.X.X 为 https 服务的 IP,Y.Y.Y.Y 为 媒体服务或者 ICE 服务的IP,通常情况下如果是内网测试,IP相同即可。

cd app
gulp dist




 

netstat  -nap  | grep  4443
tcp        0      0 0.0.0.0:4443            0.0.0.0:*               LISTEN      3261/mediasoup-demo 
 

server安装了
npm install mediasoup
app安装了
npm install mediasoup-client

 

https://blog.csdn.net/hzxOnlineOk/article/details/102459572

https://www.npmjs.com/package/pm2

https://mediasoup.org/documentation/v3/mediasoup/debugging/

你可能感兴趣的:(c/c++)