网友回复
多种方案
一、webrtc
安装electron-webrtc
npm install electron-webrtc -s
// call exported function to create Electron process var wrtc = require('electron-webrtc')() // handle errors that may occur when trying to communicate with Electron wrtc.on('error', function (err) { console.log(err) }) // uses the same API as the `wrtc` package var pc = new wrtc.RTCPeerConnection(config) // compatible with `simple-peer` var peer = new SimplePeer({ initiator: true, wrtc: wrtc }) // listen for errors wrtc.on('error', function (err, source) { console.error(err) })二、TRTC
使用腾讯的 TRTC Electron SDK实现音视频直播,
地址:https://cloud.tencent.com/document/product/647/38549
三、调用ffmpeg实现直播推流实现音视频聊天。