New:Microsoft Teams Notifications Are Now Available in Socket.Learn more
Get Started

@viero/webrtc-sfu-client

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

@viero/webrtc-sfu-client

WebRTC SFU client library by @vieroinc.

latest
Source
npmnpm
Version
1.0.12
Version published
Maintainers
1
Created
Source

@viero/webrtc-sfu-client

WebRTC SFU client library by @vieroinc.

To see how viero's webrtc-sfu works either visit http://client.vcdemo.viero.tv or clone the example code from viero-webrtc-sfu-example on GitHub locally.

How to

Install

npm install --save @viero/webrtc-signaling-client
npm install --save @viero/webrtc-sfu-client

Use

import { VieroWebRTCSignalingClient } from "@viero/webrtc-signaling-client";
import { VieroWebRTCSFUClient } from "@viero/webrtc-sfu-client";

const signaling = new VieroWebRTCSignalingClient(
  "http://localhost:8090",
  "some-channel"
);
const videochat = new VieroWebRTCSFUClient();

videochat
  .join(signaling)
  .then(() =>
    VieroWebRTCSFUClient.createUserStream({ video: true, audio: true })
  )
  .then((stream) => videochat.setStreams([stream]))
  .then((stream) => {
    /* do something with the stream, eg:
    VieroWindowUtils.createElement('video', {
      attributes: { playsinline:  '', autoplay:  '' },
      properties: { srcObject:  stream, muted:  true },
      container:  me,
    });
    */
  });

Keywords

webrtc

FAQs

Package last updated on 02 Aug 2020

Related posts