Skip to content

Latest commit

 

History

History
38 lines (28 loc) · 911 Bytes

README.md

File metadata and controls

38 lines (28 loc) · 911 Bytes

npm package npm bundle size npm download week GitHub

webrtc-streamer-helper

This is a webrtc streamer helper.

Installing

# or pnpm or yarn
npm install webrtc-streamer-helper

Usage

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'
)

License

MIT.