Socket
Socket
Sign inDemoInstall

webrtc-analyzer

Package Overview
Dependencies
1
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    webrtc-analyzer

WebRTC Connection Analyzer


Version published
Weekly downloads
9
increased by350%
Maintainers
1
Install size
684 kB
Created
Weekly downloads
 

Readme

Source

WebRTC-Analyzer

This tool helps you to debug WebRTC connections.

Current features:
  • Able to display any info about the PC track
  • Able to display PC statuses (signalingState, iceGatheringState, connectionState, iceGatheringState)
  • Able to display any info from PC.getStats
  • Support for multiple RTCPeerConnection instances
  • The debuggers position could be changed by the user. (left, right)
  • Reactive component
Desired features:
  • Able to display offer and answer
  • Able to display the generated ICE Candidates
  • User is able to customize what he/she wants to see

WebRTC-Analyzer

How to use

Install with yarn.

yarn add webrtc-analyzer

Install with npm.

npm i webrtc-analyzer

Example code

Reactive way
import { Analyzer } from "webrtc-analyzer";
<Analyzer peerConnections={[pc1, pc2]} isVisible={true} position="right" />
Vanilla JS way
import { renderWebRTCAnalyzer } from "webrtc-analyzer";
renderWebRTCAnalyzer({
    peerConnections: [pc1, pc2], //Array - containing RTCPeerConnection instances
    isVisible: true, //Boolean - true by default
    position: 'right' //String - right by default (left | right)
}, '#wa-app') //Select where the component gets rendered to
Example page

Example

Show & Hide

CTRL + H to toggle

Move position

CTRL + W to toggle

Version

3.1.1

Contact

Keywords

FAQs

Last updated on 25 Sep 2018

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc