This is a webrtc streamer helper.
# or pnpm or yarn
npm install webrtc-streamer-helper
import { WebRTCStreamer } from 'webrtc-streamer-helper'
const webRtcServer = new WebRTCStreamer({
url: 'http://10.57.2.244:8000',
element: '#div-1'
})
webRtcServer.connect(
videoUrl,
audioUrl,
'rtptransport=tcp&timeout=60&width=320&height=0'
)
Feel free to dive in! Open an issue or submit PRs.
Standard Readme follows the Contributor Covenant Code of Conduct.
This project exists thanks to all the people who contribute.
MIT © MichaelSun