npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@ringcentral/video-sdk

v0.15.5

Published

RingCentral Video Web SDK

Downloads

12

Readme

RingCentral Video Client SDK for Web Browser

Overview

By RingCentral video SDK, you could use less efforts to create a web application with real-time audio/video communications.

With the video client SDK you can:

  • Joins or starts a meeting with a valid access token.
  • Joins the meeting as a guest. (The app needs to get the authorization of the guest type first)
  • Starts the audio/video communication with participants.
  • Mutes and unmutes the local audio.
  • Starts and stops the local video.
  • Sharing the device screen or application.
  • Sends in-meeting private and public chat messages.
  • Starts an stops the local audio and video device test.
  • Receives meeting and media event callback, such as participant joined/leave, audio/video muted/unmuted.
  • Host or moderator privileges:
    • Mutes and unmutes a specific participant' audio or video.
    • Mutes and unmutes all meeting users' audio or video.
    • Locks/unlocks the meeting.
    • Starts and pauses the recording.
    • Assigns and revokes the moderator role with meeting users.
    • Puts in-meeting users into the waiting room.
    • Admits/denies a user from the waiting room.
    • Admits all users from the waiting room.
    • Stops remote users' sharing.
    • Locks and unlocks the meeting sharing function.
    • Removes the meeting user from the active meeting.
  • Starts and pauses recording.
  • Starts and pauses close captions.
  • Starts and pauses live transcription.

More changes refers to Release notes.

Prerequisites

Installation

yarn add @ringcentral/video-sdk

or

npm install @ringcentral/video-sdk

or

pnpm install @ringcentral/video-sdk

Getting Started

Step 1: Init SDK by clientId and clientSecret

const engine = RcvEngine.create({clientId, clientSecret});

More init properties refer to Interface EngineInitConfig.

Step 2: Finish authorization

// if config jwt, initialize SDK with jwt, else initialize SDK with password
await engine.authorize({
      grantType: jwt ? GrantType.JWT : GrantType.PASSWORD,
      jwt,
      username: userName,
      password,
})    
// or inject auth token
engine.setAuthToken(token);        

For more details refer to Class RcvEngine.

Step 3: Start or join a meeting

It recommends listening to basic meeting events.

// add listeners
rcv.on(EngineEvent.MEETING_JOINED, (meetingId, errorCode) => {})
rcv.on(EngineEvent.MEETING_LEFT, () => {})
// join a meeting
rcv.joinMeeting(meetingId, { password })
// or start a meeting
rcv.startInstantMeeting()

Reporting usage data

We have included in the SDK the ability to send important usage data back to RingCentral systems to help product teams improve the product, monitor for issues, and better understand how developers and users are engaging with the products this SDK powers. This is enabled by default.

We understand that some may prefer this information not be transmitted to RingCentral via the SDK. To opt-out of this reporting, please make the following code change(s):

RcvEngine.create({
    clientId,
    clientSecret,
    isShareUsageData: false
})

What information do we transmit

When enabled, our reporting system transmits data when certain events are triggered. Accompanying each event is the following metadata:

  • Client ID
  • Anonymized account ID
  • SDK user-agent (name and version)
  • Event performed
  • Other event-specific meta data as needed

We do not transmit any personal data or personally identifiable information.

Load E2EE and VBG modules on demand

We will not load E2EE and VBG module by default, for reducing Client SDK packet size. If you need open E2EE or apply VBG (virtual background) to video, please register those modules as below:

import E2EE from '@ringcentral/video-sdk/e2ee';
import VBG from '@ringcentral/video-sdk/vbg';

rcvEngine.registerModule({
    e2ee: E2EE,
    vbg: VBG,
});

Contact Us

Dev Support & Feedback: For feedback, questions, or suggestions around SDK please email [email protected] or [email protected].