Skip to content

Commit 3c6c6a5

Browse files
committed
1.8.0
1 parent e23cb5a commit 3c6c6a5

File tree

6 files changed

+49
-9
lines changed

6 files changed

+49
-9
lines changed

CHANGELOG.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,23 @@
11
# Change Log
22

3+
### 1.8.0 (October 27, 2021 UTC)
4+
For 1.8.0, a new feature is released for both Group call and Direct call features respectively.
5+
For the Group call feature, you can now add and manage custom items to store additional information for a room.
6+
* Added custom items feature in Group Call
7+
* Added `customItems` in `Room`.
8+
* Added `customItems` in `RoomParams`.
9+
* Added `updateCustomItems(customItems: CustomItems): Promise<CustomItemsResult>` and `deleteCustomItems(customItemKeys: string[]): Promise<CustomItemsResult>` in `Room`.
10+
* Added `customItemsUpdated` and `customItemsDeleted` in `RoomEventMap`.
11+
For the Direct call feature, you can now hold and resume calls which allows you to accept an incoming call or switch between calls.
12+
* Added hold and resume feature in Direct Call
13+
* Added `hold(): Promise<void>` and `unhold(force: boolean): Promise<void>` in `DirectCall`.
14+
* Added `isOnHold` in `DirectCall`.
15+
* Added `holdActiveCall` in `DialParams` and `AcceptParams`.
16+
* Added `onUserHoldStatusChanged` in `DirectCall`.
17+
* Added `getOngoingCalls()` in `SendBirdCall` to retrieve a list of ongoing Direct Calls in the Calls SDK.
18+
* Added missing return type of push token registration APIs.
19+
* Improved stability.
20+
321
### 1.7.2 (October 8, 2021 UTC)
422
* Added push token registration APIs
523
* Below methods are added in `SendBirdCall`

SendBirdCall.min.d.ts

Lines changed: 26 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/** 1.7.2 */
1+
/** 1.8.0 */
22
// eslint-disable-next-line no-undef,max-classes-per-file
33
export as namespace SendBirdCall;
44

@@ -40,9 +40,9 @@ export function createRoom(params: RoomParams): Promise<Room>;
4040
export function getCachedRoomById(roomId: string): Room;
4141
export function fetchRoomById(roomId: string): Promise<Room>;
4242
export function createRoomListQuery(params: RoomListQueryParams): RoomListQuery;
43-
export function registerPushToken(pushToken: string, tokenType: TokenType);
44-
export function unregisterPushToken(pushToken: string, tokenType: TokenType);
45-
export function unregisterAllPushTokens(tokenType: TokenType);
43+
export function registerPushToken(pushToken: string, tokenType: TokenType): Promise<void>;
44+
export function unregisterPushToken(pushToken: string, tokenType: TokenType): Promise<void>;
45+
export function unregisterAllPushTokens(tokenType: TokenType): Promise<void>;
4646
export const sdkVersion: string;
4747
export const appId: string;
4848
export const currentUser: User;
@@ -53,10 +53,12 @@ export interface DialParams {
5353
callOption: DirectCallOption;
5454
customItems?: CustomItems;
5555
sendBirdChatOptions?: SendBirdChatOptions;
56+
holdActiveCall?: boolean;
5657
}
5758

5859
export interface AcceptParams {
5960
callOption: DirectCallOption;
61+
holdActiveCall?: boolean;
6062
}
6163

6264
export enum LoggerLevel {
@@ -248,6 +250,7 @@ export interface DirectCall {
248250
onCustomItemsUpdated: ((call: DirectCall, updatedKeys: string[]) => void) | null;
249251
onCustomItemsDeleted: ((call: DirectCall, deletedKeys: string[]) => void) | null;
250252
onRemoteRecordingStatusChanged: ((call: DirectCall) => void) | null;
253+
onUserHoldStatusChanged: ((call: DirectCall, isLocalUser: boolean, isUserOnHold: boolean) => void) | null;
251254
onEnded: ((call: DirectCall) => void) | null;
252255

253256
onScreenShareStopped: (() => void) | null;
@@ -264,6 +267,7 @@ export interface DirectCall {
264267
readonly isRemoteVideoEnabled: boolean;
265268
readonly myRole: DirectCallUserRole;
266269
readonly isOngoing: boolean;
270+
readonly isOnHold: boolean;
267271
readonly endedBy: DirectCallUser;
268272
readonly isEnded: boolean;
269273
readonly endResult: DirectCallEndResult;
@@ -288,6 +292,9 @@ export interface DirectCall {
288292
muteMicrophone(): void;
289293
unmuteMicrophone(): void;
290294

295+
hold(): Promise<void>;
296+
unhold(force: boolean): Promise<void>;
297+
291298
captureLocalVideoView(callback?: CaptureVideoViewHandler): Promise<CaptureVideoViewResult>;
292299
captureRemoteVideoView(callback?: CaptureVideoViewHandler): Promise<CaptureVideoViewResult>;
293300

@@ -568,6 +575,21 @@ export declare class Room extends EventTarget<RoomEventMap> {
568575
*/
569576
setAudioForLargeRoom(mediaView: HTMLAudioElement): Promise<void>;
570577

578+
/**
579+
* Fetch custom items
580+
*/
581+
fetchCustomItems(): Promise<CustomItemsResult>;
582+
583+
/**
584+
* Update custom items
585+
*/
586+
updateCustomItems(customItems: CustomItems): Promise<CustomItemsResult>;
587+
588+
/**
589+
* Delete custom items
590+
*/
591+
deleteCustomItems(customItemKeys: string[]): Promise<CustomItemsResult>;
592+
571593
}
572594

573595
export type RoomParams = {

SendBirdCall.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "sendbird-calls",
3-
"version": "1.7.2",
3+
"version": "1.8.0",
44
"authors": [
55
"SendBird <support@sendbird.com>"
66
],

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "sendbird-calls",
3-
"version": "1.7.2",
3+
"version": "1.8.0",
44
"description": "SendBird Calls JavaScript SDK",
55
"main": "SendBirdCall.min.js",
66
"types": "SendBirdCall.min.d.ts",

0 commit comments

Comments
 (0)