1.7.0-rc1 • Published 2 years ago

@rtcbase/rtcbase v1.7.0-rc1

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

RtcBase

The official JavaScript SDK for RtcBase.

Installation

npm install --save @rtcbase/rtcbase

Usage

import RtcBase from "@rtcbase/rtcbase";

// Start data collection
RtcBase.init(YOUR_APP_ID);

// Identify the user with unique id and optional traits
RtcBase.identify(userId, {
    name: "Example User",
    email: "user@example.com",
});

// Add more traits later
RtcBase.identify({
    conferenceId: "9c563e15-cfdd-4966-96fc-b25c88b47ec6",
});

// Identify track received from other confrence participant
// trackId - id of MediaStreamTrack
// otherUserId - unique user id of conference participant who is the source of tracks' data
RtcBase.identifyTrack(trackId, otherUserId);

// Start a new RtcBase monitoring session
RtcBase.restartSession();
1.6.0-rc-1

2 years ago

1.5.1

2 years ago

1.5.0

2 years ago

1.7.0-rc1

2 years ago

1.0.0

2 years ago

0.3.0

3 years ago

0.4.1

3 years ago

0.2.1

3 years ago

0.1.0

3 years ago

0.0.1

3 years ago