New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@openreplay/tracker-assist

Package Overview
Dependencies
Maintainers
3
Versions
99
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@openreplay/tracker-assist

Tracker plugin for screen assistance through the WebRTC

  • 3.4.13
  • npm
  • Socket score

Version published
Weekly downloads
5.1K
decreased by-18.99%
Maintainers
3
Weekly downloads
 
Created
Source

OpenReplay Tracker Assist plugin

Tracker plugin for WebRTC video support at your site.

Installation

npm i @openreplay/tracker-assist

Usage

Initialize the @openreplay/tracker package as usual and load the plugin into it.

import Tracker from '@openreplay/tracker';
import trackerAssist from '@openreplay/tracker-assist';

const tracker = new Tracker({
  projectKey: YOUR_PROJECT_KEY,
});
tracker.start();

tracker.use(trackerAssist());

Options:

{
  confirmText: string,
  confirmStyle: Object,
  config: RTCConfiguration,
  onAgentConnect: () => (()=>void | void),
  onCallStart: () => (()=>void | void),
}

Use confirmText option to specify a text in the call confirmation popup. You can specify its styles as well with confirmStyle style object.

{
  background: "#555"
  color: "orange"
}

It is possible to pass config RTCConfiguration object in order to configure TURN server or other parameters.

config: {
  iceServers: [{
      urls: "stun:stun.services.mozilla.com",
      username: "louis@mozilla.com", 
      credential: "webrtcdemo"
  }, {
      urls: ["stun:stun.example.com", "stun:stun-1.example.com"]
  }]
}

You can pass onAgentConnect callback. It will be called when someone from OpenReplay UI connects to the current live session. It can return another function. In this case, returned callback will be called when the same agent connection gets closed.

onAgentConnect: () => {
  console.log("Hello!")
  const onAgentDisconnect = () => console.log("Bye!")
  return onAgentDisconnect
}

Warning: it is possible for the same agent to be connected/disconnected several times during one session due to a bad network. Several agents may connect simultaneously.

A callback onCallStart will be fired when the end-user accepts the call. It can return another callback that will be called on the call end.

onCallStart: () => {
  console.log("Allo!")
  const onCallEnd = () => console.log("short beeps...")
  return onCallEnd
}

Keywords

FAQs

Package last updated on 10 Jan 2022

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