1.0.12 • Published 4 years ago

@viero/webrtc-sfu-client v1.0.12

Weekly downloads
1
License
ISC
Repository
github
Last release
4 years ago

@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,
    });
    */
  });
1.0.12

4 years ago

1.0.11

4 years ago

1.0.10

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago