• Stars
    star
    237
  • Rank 168,947 (Top 4 %)
  • Language
    TypeScript
  • License
    MIT License
  • Created over 3 years ago
  • Updated 5 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Sendbird Calls for JavaScript Quickstart

Platform Languages

Introduction

Sendbird Calls SDK for JavaScript is used to initialize, configure, and build voice and video calling functionality into your JavaScript client app. In this repository, you will find the steps you need to take before implementing the Calls SDK into a project, and a sample app which contains the code for implementing voice and video call.

This quickstart is built with React. This repository contains the two types of quickstarts; Direct Call and Group Call. In Direct Call quickstart, you can perform a 1-on-1 call by dialing to a specific user. In Group Call quickstart, you can perform a multi-user call by creating and entering a room.

More about Sendbird Calls for Javascript

Find out more about Sendbird Calls for JavaScript on Calls for JavaScript doc. If you need any help in resolving any issues or have questions, visit our community.


Before getting started

This section shows you the prerequisites you need for testing Sendbird Calls for Javascript sample app.

Requirements

The minimum requirements for Calls SDK for Javascript sample are:

  • Node
  • npm (or yarn)
  • Modern browser, supporting WebRTC APIs.

Getting started

If you would like to try the sample app specifically fit to your usage, you can do so by following the steps below.

Create a Sendbird application

  1. Login or Sign-up for an account on Sendbird Dashboard.
  2. Create or select an application on the dashboard.
  3. Note your Sendbird application ID for future reference.
  4. Contact sales to get the Calls menu enabled on your dashboard. A self-serve will be available soon to help you purchase call credits automatically from your dashboard.

Create test users

  1. On the Sendbird dashboard, navigate to the Users menu.
  2. Create at least two new users: one as a caller, and the other as a callee.
  3. Note the user_id of each user for future reference.

Install and run the sample app

  1. Clone this repository
$ git clone [email protected]:sendbird/quickstart-calls-reactjs.git
  1. Install dependencies
$ cd quickstart-calls-reactjs/sample-01
$ yarn # or, npm install
  1. In .env, replace the value of REACT_APP_APP_ID with APP_ID which you can find on your Sendbird application information. If you skip this step, an additional field for the Application ID will appear in the login view.
REACT_APP_APP_ID='APP_ID'
  1. Build
$ yarn build # or, npm run build
  1. Start the sample app
$ yarn start # or, npm run start
  1. If two devices are available, repeat these steps to install the sample app on each device.

Making your first call

How to make a call

  1. On each device, open a browser and go to the index page of the sample web app. The default URL is localhost:3000.
  2. On the primary device’s browser, log in to the sample app with the user ID set as the caller.
  3. On the secondary device’s browser, log in to the sample app with the user ID set as the caller.
  4. On the primary browser, specify the user ID of the callee and initiate a call.
  5. If all steps are followed correctly, an incoming call notification will appear on the browser of the callee.
  6. Reverse the roles. Initiate a call from the other browser.
  7. If the two testing devices are near each other, use headphones to make a call to prevent audio feedback.

Sound Effects

You can use different sound effects to enhance the user experience for events that take place while using Sendbird Calls.

To add sound effects, use the SendBirdCall.addDirectCallSound(type: SoundType, uri: string) method for the following events: dialing, ringing, reconnecting, and reconnected. Remember to set sound effects before the mentioned events occur. To remove sound effects, use the SendBirdCall.Options.removeDirectCallSound(type: SoundType) method.

Use SendBirdCall.addDirectCallSound(type: SoundType, uri: string) method to set sound effects for a number of types: dialing, ringing, reconnecting, reconnected. Sound effects must be set before the events occur. To unregister a sound effect, remove it by calling SendBirdCall.Options.removeDirectCallSound(type: SoundType).

// Play on a caller’s side when making a call.
SendBirdCall.addDirectCallSound(SendBirdCall.SoundType.DIALING, DIALING_SOUND_URL);
// Play on a callee’s side when receiving a call.
SendBirdCall.addDirectCallSound(SendBirdCall.SoundType.RINGING, RINGING_SOUND_URL);
// Play when a connection is lost, but the SDK immediately attempts to reconnect.
SendBirdCall.addDirectCallSound(SendBirdCall.SoundType.RECONNECTING, RECONNECTING_SOUND_URL);
// Play when the connection is re-established.
SendBirdCall.addDirectCallSound(SendBirdCall.SoundType.RECONNECTED, RECONNECTED_SOUND_URL);

For more information about sound effects, see the SDK for JavaScript README for Sound effects

Reference

For further detail on Sendbird Calls for JavaScript, refer to Sendbird Calls SDK for JavaScript README.

More Repositories

1

sendbird-javascript-samples

A guide of the installation and functions of Sendbird Chat, UIKit, and SyncManager for JavaScript samples.
JavaScript
345
star
2

SendBird-Android

A guide of the installation and functions of Sendbird Chat, and SyncManager for Android samples.
Java
206
star
3

sendbird-uikit-react

Build chat in minutes with Sendbird UIKit open source code.
TypeScript
189
star
4

SendBird-iOS

A guide of the installation and functions of Sendbird Chat, UIKit, and SyncManager for iOS in Objective-C samples.
127
star
5

SendBird-SDK-JavaScript

Sendbird Chat SDK for JavaScript for enablement of a rich, engaging, scalable, and real-time chat service.
101
star
6

sendbird-uikit-ios

Sendbird UIKit for iOS is a development kit with a user interface, offering a simplified integration into chat.
Swift
98
star
7

sendbird-uikit-react-native

Build chat in minutes with Sendbird UIKit open source code.
TypeScript
65
star
8

sendbird-ios-framework

[Deprecated] Sendbird Chat SDK for iOS in Objectivce-C for enablement of a rich, engaging, scalable, and real-time chat service.
Objective-C
61
star
9

sendbird-chat-sample-flutter

Dart
58
star
10

sendbird-chat-sdk-flutter

Sendbird Chat SDK for Flutter
Dart
52
star
11

sendbird-chat-sample-react

SendBird Chat SDK sample for React.
JavaScript
41
star
12

sendbird-uikit-android

Build chat in minutes with Sendbird UIKit open source code and samples.
Java
38
star
13

sb-osc

Sendbird's Online Schema Change Tool for Aurora MySQL
Python
34
star
14

SendBird-SDK-Android

Sendbird Chat SDK for Android for enablement of a rich, engaging, scalable, and real-time chat service.
32
star
15

sendbird-chat-sample-ios

This repository provides feature-level Chat samples with Swift.
Swift
29
star
16

chat-ai-widget

Build AI Chatbot in minutes with Sendbird Chatbot Widget.
TypeScript
27
star
17

quickstart-calls-directcall-ios

iOS sample for Direct Call of Sendbird Calls, guiding you to build a real-time voice and video calls quickly and easily.
Swift
25
star
18

sendbird-chat-sdk-javascript

Sendbird Chat SDK for JavaScript.
JavaScript
23
star
19

sendbird-sample

SendBird - Messaging and Chat API for Mobile Apps and Websites
18
star
20

SendBird-iOS-Swift

A guide of the installation and functions of Sendbird Chat for iOS in Swift sample.
Swift
17
star
21

sendbird-chat-sdk-ios

Sendbird Chat SDK for iOS for enablement of a rich, engaging, scalable, and real-time chat service.
Shell
17
star
22

quickstart-calls-directcall-android

Sendbird Calls for Android sample, guiding you to build a real-time voice and video calls quickly and easily.
Java
15
star
23

SendBird-UIKIT-JavaScript

Sendbird UIKit for JavaScript is a development kit with a user interface, offering a simplified integration into chat.
JavaScript
15
star
24

sendbird-webrtc-ios

This is WebRTC framework for iOS that SendBird builds on top of Google WebRTC
Ruby
13
star
25

sendbird-calls-javascript

A guide of Sendbird Calls SDK for JavaScript for an engaging voice and video call experience.
Shell
13
star
26

quickstart-calls-javascript

Sendbird Calls for JavaScript sample, guiding you to bulid a real-time voice and video calls quickly and easily.
JavaScript
12
star
27

sendbird-calls-sdk-react-native-legacy

Sendbird Calls SDK for React-Native
TypeScript
12
star
28

sendbird-calls-android

A guide of Sendbird Calls SDK for Android for an engaging voice and video call experience.
11
star
29

sendbird-chat-sample-android

Kotlin
11
star
30

sendbird-calls-ios

A guide of Sendbird Calls SDK for iOS for an engaging voice and video call experience.
Objective-C
11
star
31

AndroidChatTutorial

Chat tutorial source code
Java
10
star
32

mymessenger_tutorial

Objective-C
10
star
33

sendbird-platform-sdk-python

Sendbird Platform API SDK for server languages
Python
10
star
34

sendbird-platform-sdk-typescript

Sendbird Typescript SDK for the server to server API
TypeScript
9
star
35

sendbird-chat-sample-unity

A guide of the installation and functions of Sendbird Chat for Unity sample.
C#
9
star
36

sendbird-chat-sdk-dotnet

Sendbird Chat SDK for .NET for enablement of a rich, engaging, scalable, and real-time chat service.
9
star
37

sendbird-platform-sdk-java

Sendbird Platform SDK for Java
Java
8
star
38

sendbird-chat-sdk-android

Sendbird Chat SDK for Android
Shell
8
star
39

sendbird-syncmanager-javascript

Sendbird SyncManager for JavaScript is an add-on for reliable chat data caching with Chat SDK features.
8
star
40

sendbird-syncmanager-ios

Sendbird SyncManager for iOS is an add-on for reliable chat data caching with Chat SDK features.
Objective-C
7
star
41

sendbird-calls-directcall-quickstart-react-native

quickstart-calls-directcall-react-native
TypeScript
6
star
42

sendbird-chatube

Objective-C
5
star
43

examples-calls-javascript

This repository provides feature-level Calls samples with JavaScript and lets you know how to implement Sendbird Call's various features.
JavaScript
5
star
44

AndroidChannelListTutorial

Complete Source Code for Channel List Tutorial
Java
5
star
45

sendbird-uikit-sample-react-native-expo

[Sample] uikit-react-native with expo
JavaScript
5
star
46

sendbird-calls-quickstart-react-native

Download quickstart apps to try the core features for Sendbird Calls SDK.
5
star
47

sendbird-platform-sdk-javascript

Sendbird Platform API JavaScript SDK
JavaScript
4
star
48

SyncManager-iOS-Swift

[Deprecated] Sendbird SyncManager for iOS sample: installation and functions.
Swift
4
star
49

guidelines-ios

Sendbird guidelines for iOS development.
4
star
50

sendbird-uikit-nextjs-sample

A sample app the uses Next.js 13 and Sendbird UIKit V3
CSS
4
star
51

examples-calls-android

Kotlin
4
star
52

sendbird-discord-javascript-sample

An example of how UIKit can be customized to fit different look and feels
JavaScript
4
star
53

react-native-scrollview-enhancer

A utility package enabling onStartReached & maintainVisibleContentPosition in pre-0.72 react-native ScrollView.
TypeScript
4
star
54

sendbird-videochat-ios

Objective-C
4
star
55

sendbird-syncmanager-android

Sendbird SyncManager for Android is an add-on for reliable chat data caching with Chat SDK features.
4
star
56

tutorial-react-native

tutorial-react-native
3
star
57

sendbird-react-uikit-vue-sample

Adding UIKit to a Vue 3 application
Vue
3
star
58

python-daemon

Python
3
star
59

sendbird-chat-sample-unreal

C++
3
star
60

quickstart-desk-javascript

Sendbird Desk for JavaScript sample for fast and easy implementation of a customizable live chat customer support system on Sendbird Chat platform.
JavaScript
3
star
61

SendBird-Desk-SDK-Android

Sendbird Desk SDK for Android: customizable live chat customer support system on Sendbird Chat platform.
3
star
62

ecommerce-ai-chatbot

ecommerce-ai-chatbot
Swift
3
star
63

healthcare-ai-chatbot

healthcare-ai-chatbot
Swift
3
star
64

SendBird-Desk-SDK-JavaScript

Sendbird Desk SDK for JavaScript: customizable live chat customer support system on Sendbird Chat platform.
3
star
65

examples-calls-ios

This repository provides feature-level Calls samples with Swift and lets you know how to implement Sendbird Call's various features.
Swift
3
star
66

sendbird-live-sample-react

TypeScript
2
star
67

sendbird-calls-sdk-unity

A guide of Sendbird Calls SDK for Unity for an engaging voice and video call experience.
C#
2
star
68

sendbird-calls-groupcall-quickstart-react-native

quickstart-calls-groupcall-react-native
TypeScript
2
star
69

sendbird-platform-sdk-csharp

Sendbird Platform SDK for C#
C#
2
star
70

sendbird-chat-sdk-unreal

C++
2
star
71

sendbird-uikit-ios-spm

Sendbird UIKit for iOS is a development kit with a user interface, offering a simplified integration into chat.
Objective-C
2
star
72

simple_pong_chatbot

Describes how to setup a basic chat bot on SendBird, including launching the infrastructure necessary on AWS.
Python
2
star
73

release-automation-action

Release automation comment bot
TypeScript
2
star
74

sendbird_mymessenger_tutorial

Objective-C
2
star
75

sendbird-webrtc-ios-dev

C++
2
star
76

sendbird-chat-ios-spm

[v3] Sendbird Chat SDK for SPM
Shell
2
star
77

quickstart-calls-chat-integration-javascript

Calls integration to Chat for JavaScript Quickstart
JavaScript
2
star
78

quickstart-calls-groupcall-android

Kotlin
2
star
79

react-native-touch-reload

reload helper for react-native
TypeScript
2
star
80

sendbird-videochat-android

2
star
81

sendbird-chatgpt-sample-android

Kotlin
2
star
82

SendBird-iOS-ObjectiveC

[Deprecated] A guide of the installation and functions of Sendbird Chat for iOS sample.
Objective-C
2
star
83

sendbird-calls-sdk-react-native

Sendbird Calls SDK for React-Native
Kotlin
2
star
84

sendbird-chat-sdk-windows

Sendbird Chat SDK for Windows for enablement of a rich, engaging, scalable, and real-time chat service.
C++
1
star
85

quickstart-calls-ios

Download quickstart apps to try the core features for Sendbird Calls SDK.
1
star
86

sendbird-chat-sample-windows

A guide of the installation and functions of Sendbird Chat for Window sample.
C++
1
star
87

sendbird-live-sample-android

Kotlin
1
star
88

sendbird-videochat-javascript

SendBird VideoChat for JavaScript
1
star
89

sendbird-live-sample-ios

iOS general sample for Sendbird Live, guiding you to build a real-time massive steaming event quickly and easily.
Swift
1
star
90

SendBird-Desk-iOS-Framework

Sendbird Desk SDK for iOS: customizable live chat customer support system on Sendbird Chat platform.
Objective-C
1
star
91

sendbird-chat-sample-react-native

Sendbird Chat SDK sample for React-Native.
TypeScript
1
star
92

sendbird-chatgpt-sample-ios

GPT Sample in iOS
Swift
1
star
93

LocalCaching-iOS-Swift

Sendbird Chat iOS sample app that supports Local Caching
Swift
1
star
94

SendBirdCallKitSampleApp

Swift
1
star
95

quickstart-desk-android

Sendbird Desk for Android sample for fast and easy implementation of a customizable live chat customer support system on Sendbird Chat platform.
Java
1
star