Skip to content

Commit

Permalink
1.1.3 update
Browse files Browse the repository at this point in the history
  • Loading branch information
mayk-zoom committed Jul 15, 2021
1 parent eae2345 commit 55a8fc8
Show file tree
Hide file tree
Showing 32 changed files with 98 additions and 92 deletions.
15 changes: 15 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
## CHANGELOG

## v1.1.3

### Added:

* "session_key" and "user_identity" fields to JWT, allowing developers to assign unique session and user IDs to V-SDK sessions from separate, external systems

### Enhanced:

* Rendering video in Chrome and Edge to remove WebGC console warning

### Fixed:

* Bug where sendToAll generated unintended errors
* Issue where SDK clients were automatically muted when joining the second meeting in a session after leaving the first

## v1.1.0

### Added:
Expand Down
2 changes: 1 addition & 1 deletion dist/index.esm.js
100755 → 100644

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/index.js
100755 → 100644

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/index.umd.js
100755 → 100644

Large diffs are not rendered by default.

Binary file modified dist/lib/audio.encode.wasm
100755 → 100644
Binary file not shown.
Binary file modified dist/lib/audio.simd.wasm
100755 → 100644
Binary file not shown.
4 changes: 2 additions & 2 deletions dist/lib/audio_simd.min.js
100755 → 100644

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/lib/js_audio_process.min.js
100755 → 100644

Large diffs are not rendered by default.

Empty file modified dist/lib/js_audio_worklet.min.js
100755 → 100644
Empty file.
2 changes: 1 addition & 1 deletion dist/lib/js_media.min.js
100755 → 100644

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions dist/lib/sharing_m.min.js
100755 → 100644

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions dist/lib/sharing_mtsimd.min.js
100755 → 100644

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/lib/sharing_s.min.js
100755 → 100644

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/lib/sharing_simd.min.js
100755 → 100644

Large diffs are not rendered by default.

Binary file modified dist/lib/video.decode.wasm
100755 → 100644
Binary file not shown.
Binary file modified dist/lib/video.mt.wasm
100755 → 100644
Binary file not shown.
Binary file modified dist/lib/video.mtsimd.wasm
100755 → 100644
Binary file not shown.
Binary file modified dist/lib/video.simd.wasm
100755 → 100644
Binary file not shown.
6 changes: 3 additions & 3 deletions dist/lib/video_m.min.js
100755 → 100644

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions dist/lib/video_mtsimd.min.js
100755 → 100644

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/lib/video_s.min.js
100755 → 100644

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/lib/video_simd.min.js
100755 → 100644

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions dist/lib/webim.min.js
100755 → 100644

Large diffs are not rendered by default.

43 changes: 8 additions & 35 deletions dist/types/chat.d.ts
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
import { ExecutedResult } from './common';

export interface ChatMessage {
interface ChatMessage {
/**
* message id,used for delete/modify message
*/
id?: string;
message: string;
sender: { name: string; userId: number; avatar?: string };
receiver: {
Expand All @@ -10,7 +14,7 @@ export interface ChatMessage {
timestamp: number;
}

export interface ChatUserItem {
interface ChatUserItem {
userId: number;
displayName: string;
isHost: boolean;
Expand All @@ -32,7 +36,7 @@ export declare enum ChatMsgType {
* ```js
* const client = ZoomMeeting.createClient();
* client.init(
* apiKey,
* sdkKey,
* makeSignature(),
* ...,
* ['chat'], // to enable chat interface
Expand Down Expand Up @@ -79,6 +83,7 @@ export declare namespace ChatClient {
* - `INVALID_PARAMETERS`: invalid parameter
*/
function send(text: string, userId: number): Promise<ChatMessage | Error>;

/**
* Send message to everyone
* @param text message
Expand Down Expand Up @@ -141,35 +146,3 @@ export declare namespace ChatClient {
*/
function getReceivers(): Array<ChatUserItem>;
}
/**
* A series of events are exposed to indicate the status of Chat.
*/
export enum ExposedChatEvent {
/**
* receive instant messages sent from other
* #### example
* ```js
* client.on('chat-on-message', data => {
* console.log(data);
* // do something
* })
* ```
* the structure of data is the same as {@link ChatMessage}
* @event 'chat-on-message'
*/
chatReceiveMessage = 'chat-on-message',

/**
* receive the privilege value when it's changed
* #### example
* ```typescript
* client.on('chat-privilege-change', (data: { chatPrivilege: number }) => {
* console.log(data);
* // do something
* })
* ```
* @event 'chat-privilege-change'
*/
chatPrivilegeChange = 'chat-privilege-change',
}
export default ChatClient;
Empty file modified dist/types/common.d.ts
100755 → 100644
Empty file.
23 changes: 18 additions & 5 deletions dist/types/event-callback.d.ts
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { ChatMessage, ChatPrivilege } from './chat';
/**
* The State of Meeting connection.
*/
declare enum ConnectionState {
export declare enum ConnectionState {
Connected = 'Connected',
Reconnecting = 'Reconnecting',
Closed = 'Closed',
Expand All @@ -12,14 +12,14 @@ declare enum ConnectionState {
/**
* The State of Video
*/
declare enum VideoActiveState {
export declare enum VideoActiveState {
Active = 'Active',
Inactive = 'Inactive',
}
/**
* The State of Current User's Video Capturing
*/
declare enum VideoCapturingState {
export declare enum VideoCapturingState {
Started = 'Started',
Stopped = 'Stopped',
Failed = 'Failed',
Expand All @@ -28,7 +28,7 @@ declare enum VideoCapturingState {
/**
* Reason of passively stop screen share
*/
declare enum PassiveStopShareReason {
export declare enum PassiveStopShareReason {
/**
* Privilege change or others start new sharing
*/
Expand Down Expand Up @@ -177,7 +177,7 @@ export declare function event_user_remove(
* client.on('video-active-change', async(payload) => {
* try {
* if (payload.state === 'Active') {
* await stream.startRenderVideo(canvas, quality, payload.id, '');
* await stream.renderVideo(canvas,userId,1280,720,0,0,3);
* } else {
* await astream.stopRenderVideo();
* }
Expand Down Expand Up @@ -329,6 +329,19 @@ export declare function event_auto_play_audio_failed(): void;
* @event
*/
export declare function event_chat_received_message(payload: ChatMessage): void;

/**
* Occurs when message is deleted
* @param payload id of message
* ```javascript
* client.on('chat-delete-message',payload=>{
* console.log('from %s, message:%s',payload.sender.name,payload.message);
* })
* ```
* @event
*/
export declare function event_chat_delete_message(payload: { id: string }): void;

/**
* Occurs when the host change the privilege of chat
* @param payload the event detail
Expand Down
3 changes: 2 additions & 1 deletion dist/types/index.d.ts
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import ZoomVideo from './zoomvideo';
import { ZoomVideo } from './zoomvideo';
export * from './common';
export * from './event-callback';
export * from './media';
export * from './chat';
export * from './videoclient';
export * from './preview';
export default ZoomVideo;
18 changes: 10 additions & 8 deletions dist/types/media.d.ts
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { ExecutedResult } from './common';
/**
* Interface of media device
*/
export interface MediaDevice {
interface MediaDevice {
/**
* Label of the device
*/
Expand All @@ -16,7 +16,7 @@ export interface MediaDevice {
/**
* Share privilege
*/
export enum SharePrivilege {
export declare enum SharePrivilege {
/**
* One participant can share at a time, only the host or manager can start sharing when someone else is sharing.
*/
Expand All @@ -27,7 +27,7 @@ export enum SharePrivilege {
Locked = 1,
}

export interface CaptureVideoOption {
interface CaptureVideoOption {
/**
* Id of the camera for capturing the video, if not specified, use system default
*/
Expand All @@ -42,13 +42,13 @@ export interface CaptureVideoOption {
captureHeight?: number;
}

export enum VideoQuality {
export declare enum VideoQuality {
Video_90P = 0,
Video_180P = 1,
Video_360P = 2,
Video_720P = 3,
}
export interface UnderlyingColor {
interface UnderlyingColor {
R: number;
G: number;
B: number;
Expand Down Expand Up @@ -262,7 +262,7 @@ export declare namespace Stream {
*
* @param x Required. Coordinate x of video.
* @param y Required. Coordinate y of video.
* @param videoQuality Required. Quality of the video. 90P/180P/360P/720P. Currently supports up to 360P
* @param videoQuality Required. Quality of the video. 90P/180P/360P/720P. Currently supports up to 720P
* @param additionalUserKey Optional. Used for render the same video on different coordinate of the canvas.
*
* @returns
Expand Down Expand Up @@ -503,6 +503,10 @@ export declare namespace Stream {
* Whether the browser is support render multiple videos simultaneously
*/
function isSupportMultipleVideos(): boolean;
/**
* Whether video sdk supports HD video
*/
function isSupportHDVideo(): boolean;
/**
* Render the received screen share content.
* - It is usually called in the `active-share-change` callback.
Expand Down Expand Up @@ -586,5 +590,3 @@ export declare namespace Stream {
*/
function getActiveShareUserId(): number;
}

export default Stream;
Empty file modified dist/types/preview.d.ts
100755 → 100644
Empty file.
17 changes: 11 additions & 6 deletions dist/types/videoclient.d.ts
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { ExecutedResult } from './common';
import Stream from './media';
import ChatClient from './chat';
import { Stream } from './media';
import { ChatClient } from './chat';
import {
event_connection_change,
event_user_add,
Expand All @@ -23,11 +23,12 @@ import {
event_video_dimension_change,
event_share_privilege_change,
event_peer_video_state_change,
event_chat_delete_message,
} from './event-callback';
/**
* Interface for the result of check system requirements.
*/
export interface MediaCompatiblity {
interface MediaCompatiblity {
/**
* If `audio` is `false`, it means the browser is not compatible with voip.
*/
Expand All @@ -42,7 +43,7 @@ export interface MediaCompatiblity {
screen: boolean;
}

export interface SessionInfo {
interface SessionInfo {
/**
* topic
*/
Expand All @@ -67,7 +68,7 @@ export interface SessionInfo {
/**
* Interface of a participant
*/
export interface Participant {
interface Participant {
/**
* Identify of a user.
*/
Expand Down Expand Up @@ -215,6 +216,10 @@ export declare namespace VideoClient {
event: 'chat-on-message',
listener: typeof event_chat_received_message,
): void;
function on(
event: 'chat-delete-message',
listener: typeof event_chat_delete_message,
): void;
/**
* @param event
* @param listener Details in {@link event_chat_privilege_change}.
Expand Down Expand Up @@ -316,7 +321,7 @@ export declare namespace VideoClient {
*
* @returns a executed promise. Following are the possible error reasons:
* - `duplicated operation`: Duplicated invoke the `join` method.
* - `invalid apiKey or signature`: ApiKey or signature is not correct.
* - `invalid apiKey/sdkKey or signature`: ApiKey/SdkKey or signature is not correct.
* - `invalid password`: Password is not correct.
* - `meeting is not started`: The meeting is not started. If you are the host of the meeting, you can start the meeting.
* - `meeting is locked`: The meeting is locked by the host, can not join the meeting.
Expand Down
4 changes: 1 addition & 3 deletions dist/types/zoomvideo.d.ts
100755 → 100644
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { MediaCompatiblity, VideoClient } from './videoclient';
import { LocalVideoTrack, LocalAudioTrack } from './preview';

declare namespace ZoomVideo {
export declare namespace ZoomVideo {
/**
* The version of the Zoom Video Web SDK.
*/
Expand Down Expand Up @@ -71,5 +71,3 @@ declare namespace ZoomVideo {
*/
function destroyClient(): void;
}

export default ZoomVideo;
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@zoom/videosdk",
"version": "1.1.0",
"version": "1.1.3",
"description": "Zoom Web Video SDK",
"main": "dist/index.js",
"module": "dist/index.esm.js",
Expand All @@ -23,8 +23,7 @@
"/dist",
"oss_attribution.txt",
"readme.md",
"LICENSE.pdf",
"CHANGELOG.pdf"
"CHANGELOG.md"
],
"bugs": {
"url": "https://github.com/zoom/videosdk-web/issues"
Expand Down

0 comments on commit 55a8fc8

Please sign in to comment.