Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

github.com/mohit810/webrtc_api

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/mohit810/webrtc_api

  • v0.0.0-20201108111553-0c1b64e087b2
  • Source
  • Go
  • Socket score

Version published
Created
Source

Signalling Pion Webrtc server via POST Request

I have build this small signalling upgradation for anyone intrested in building the thier own server to establish 1:N Broadcasting connection with the users as described broadcast is a Pion WebRTC application that demonstrates how to broadcast a video to many peers, while only requiring the broadcaster to upload once. in the Pion/webrtc/example/broadcast/.

Before using this solution you should set-up pion/webrtc/v3 (Go Modules are mandatory for using Pion WebRTC. So make sure you set export GO111MODULE=on, and explicitly specify /v3 when importing.).

Open broadcast example page

jsfiddle.net You should see two buttons 'Publish a Broadcast' and 'Join a Broadcast'

Run Application

Linux/macOS/windows

Run main.go

Start a publisher

  • Click Publish a Broadcast
  • For Communicating with server you have to request the server via POST method (Postman Screenshot is given below) and paste the sdp obtained from the browser. The application will respond with an offer as a response to the POST, paste this into the second input field. Then press Start Session.

Join the broadcast

  • Click Join a Broadcast
  • Send a POST request on the same url, having the same parameters as described in the Start a publisher Section and paste the sdp obtained from the browser . The application will respond with an offer, paste this into the second input field. Then press Start Session.

Big Thanks to the following

FAQs

Package last updated on 08 Nov 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc