Skip to content

Commit dd1ea7e

Browse files
committed
1.4.0
1 parent d3f7287 commit dd1ea7e

File tree

6 files changed

+27
-9
lines changed

6 files changed

+27
-9
lines changed

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,14 @@
11
# Change Log
2+
### 1.4.0 (Nov 3, 2020 UTC)
3+
* Added remote recording progress event.
4+
* Below properties are added in `DirectCall`:
5+
* `onRemoteRecordingStatusChanged: ((call: DirectCall) => void) | null`
6+
* `localRecordingStatus: RecordingStatus`
7+
* `remoteRecordingStatus: RecordingStatus`
8+
* Below enum is added in `SendBirdCall`:
9+
* `RecordingStatus`
10+
* Improved stability
11+
212
### 1.3.0 (September 23, 2020)
313
* Added snapshot feature
414
* Below methods are added in `DirectCall`

SendBirdCall.min.d.ts

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/** 1.3.0 */
1+
/** 1.4.0 */
22

33
// eslint-disable-next-line no-undef
44
export as namespace SendBirdCall;
@@ -155,6 +155,7 @@ export interface DirectCall {
155155
onRemoteVideoSettingsChanged: ((call: DirectCall) => void) | null;
156156
onCustomItemsUpdated: ((call: DirectCall, updatedKeys: string[]) => void) | null;
157157
onCustomItemsDeleted: ((call: DirectCall, deletedKeys: string[]) => void) | null;
158+
onRemoteRecordingStatusChanged: ((call: DirectCall) => void) | null;
158159
onEnded: ((call: DirectCall) => void) | null;
159160

160161
readonly callId: string;
@@ -174,6 +175,8 @@ export interface DirectCall {
174175
readonly endResult: DirectCallEndResult;
175176
readonly callLog: DirectCallLog;
176177
readonly customItems: CustomItems;
178+
readonly localRecordingStatus: RecordingStatus;
179+
readonly remoteRecordingStatus: RecordingStatus;
177180
readonly localMediaView: HTMLMediaElement;
178181
readonly remoteMediaView: HTMLMediaElement;
179182

@@ -198,7 +201,7 @@ export interface DirectCall {
198201
deleteAllCustomItems(callback?: CustomItemsHandler): Promise<CustomItemsResult>;
199202

200203
startRecording(options: DirectCallRecordOption): string;
201-
stopRecording(recordingId: string): boolean;
204+
stopRecording(recordId: string): boolean;
202205
}
203206

204207
export interface DirectCallOption {
@@ -287,7 +290,7 @@ export interface MediaAccess {
287290

288291
export interface DirectCallRecordOption {
289292
callId: string;
290-
recordingType: string;
293+
recordingType: RecordingType;
291294
fileName?: string;
292295
}
293296

@@ -297,12 +300,17 @@ declare const DirectCallRecordOption: {
297300

298301
export enum RecordingType {
299302
REMOTE_AUDIO_AND_VIDEO = 'remote_audio_and_video',
300-
REMOTE_AUDIO_ONLY = 'remove_audio_only',
303+
REMOTE_AUDIO_ONLY = 'remote_audio_only',
301304
LOCAL_REMOTE_AUDIOS = 'local_remote_audios',
302305
LOCAL_AUDIO_REMOTE_AUDIO_AND_VIDEO = 'local_audio_remote_audio_and_video',
303306
LOCAL_AUDIO_AND_VIDEO_REMOTE_AUDIO = 'local_audio_and_video_remote_audio',
304307
}
305308

309+
export enum RecordingStatus {
310+
NONE = 'none',
311+
RECORDING = 'recording',
312+
}
313+
306314
/* eslint-disable babel/camelcase */
307315
export interface WebhookData {
308316
category: string;

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.3.0",
3+
"version": "1.4.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.3.0",
3+
"version": "1.4.0",
44
"description": "SendBird Calls JavaScript SDK",
55
"main": "SendBirdCall.min.js",
66
"types": "SendBirdCall.min.d.ts",

0 commit comments

Comments
 (0)