Skip to content

Commit

Permalink
1.4.1 update (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
mayk-zoom authored Aug 29, 2022
1 parent 74e5483 commit d602310
Show file tree
Hide file tree
Showing 30 changed files with 789 additions and 104 deletions.
16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,20 @@
## CHANGELOG
## version 1.4.1

### Added
* Subsession support

### Enhanced
* Monitor logs for helping troubleshoot audio-start issues in iOS browser.
* `preloadDependentAssets` method by adding a customized assets path option/argument

### Fixed
* Mobile browsers not receiving 'active-share-change' event
* Issues where the `startAudio` method is called with the `speakerOnly` option unintentionally
* Issues with chrome tab audio sharing in certain cases
* Issues when rendering 3+1 videos with SharedArrayBuffer disabled
* Timing issues with the `device-change` event

## 1.4.0

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

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/lib/js_media.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/lib/sharing_m.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/lib/sharing_mtsimd.min.js

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

Binary file modified dist/lib/video.decode.wasm
Binary file not shown.
Binary file modified dist/lib/video.mt.wasm
Binary file not shown.
Binary file modified dist/lib/video.mtsimd.wasm
Binary file not shown.
Binary file modified dist/lib/video.simd.wasm
Binary file not shown.
4 changes: 2 additions & 2 deletions dist/lib/video_m.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/lib/video_mtsimd.min.js

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

119 changes: 76 additions & 43 deletions dist/types/chat.d.ts
Original file line number Diff line number Diff line change
@@ -1,65 +1,108 @@
import { ExecutedResult } from './common';

/**
* Message record
*/
interface ChatMessage {
/**
* message id,used for delete/modify message
*/
id?: string;
/**
* message content
*/
message: string;
sender: { name: string; userId: number; avatar?: string };
/**
* sender
*/
sender: {
/**
* name
*/
name: string;
/**
* userId
*/
userId: number;
/**
* @ignore
*/
avatar?: string;
};
/**
* receiver
*/
receiver: {
/**
* name
*/
name: string;
/**
* userId
*/
userId: number;
};
/**
* timestamp
*/
timestamp: number;
}

/**
* Receiver
*/
interface ChatUserItem {
/**
* userId
*/
userId: number;
/**
* display name
*/
displayName: string;
/**
* is host
*/
isHost: boolean;
/**
* is manager
*/
isManager: boolean;
}
/**
* Privilege of the chat
*/
export declare enum ChatPrivilege {
/**
* Everyone
*/
All = 1,
/**
* No one, cannot send message
*/
NoOne = 4,
/**
* Everyone but cannot send private message
*/
EveryonePublicly = 5,
}

export declare enum ChatMsgType {
All = 0,
}
/**
* The chat client provides the methods define the chat behavior
*
* ```javascript
* const client = ZoomVideo.createClient();
*
* ```
*
* After joining meeting success, chat client is available
* After joining a session, call client.getChatClient() to get the chat client.
*
* ```javascript
* const chat = client.getChatClient();
* // start to receive chat message
* client.on('chat-on-message', (v) => {
* console.log(v);
* // do something
* })
* const chat = client.getChatClient()
* ```
*/
export declare namespace ChatClient {
/**
* send chat message to other
* To send a chat to a specific participant, call the chat.send() function.
* #### example
* ```js
* chat.sendMessage('test', userId)
* .then(() => {
* // success
* }).catch(v => {
* // fail
* console.log(v)
* })
* chat.send('test', userId)
* ```
* @param text
* @param userId
Expand All @@ -74,58 +117,48 @@ export declare namespace ChatClient {
function send(text: string, userId: number): Promise<ChatMessage | Error>;

/**
* Send message to everyone
* To send a chat to all participants, call the chat.sendToAll() function.
* @param text message
* @returns ExecutedPromise
*/
function sendToAll(text: string): Promise<ChatMessage | Error>;

/**
* host or manager use it to change chat privilege which defines what kind of role of user that user can chat to, there are the different privilege as following.
* The host or manager can control the chat privilege in the session. Following are the definition of the privilege:
*
| | privilege value | describe |
|---------|--------------------------------|-----------------------------------------------------|
| meeting | ChatPrivilege.All | user can chat to everyone |
| | ChatPrivilege.NoOne | user can chat to no one |
| | ChatPrivilege.EveryonePublicly | user can chat to host, manager and everyone |
| value | description |
|--------------------------------|-----------------------------------------------------|
| ChatPrivilege.All | user can chat to everyone |
| ChatPrivilege.NoOne | user can chat to no one |
| ChatPrivilege.EveryonePublicly | user can chat to host, manager and everyone |
*
* #### example
*
* ```js
* chat.setPrivilege(ChatPrivilege.All)
* .then((v) => {
* const { chatPrivilege } = v;
* // success
* })
* .catch(v => {
* // fail
* console.log(v)
* })
* ```
*
* @param privilege
*
* @return executedPromise
*/
function setPrivilege(privilege: number): ExecutedResult;
function setPrivilege(privilege: ChatPrivilege): ExecutedResult;

/**
* return the current privilege value
* Get the current chat privilege
* #### example
* ```js
* const privilege = chat.getPrivilege();
* console.log(privilege);
* ```
* @return
*/
function getPrivilege(): number;
function getPrivilege(): ChatPrivilege;
/**
* get the history chat list
* #### example
* ```js
* const historyChatList = chat.getHistory();
* console.log(historyChatList);
* ```
* @return
*/
Expand Down
10 changes: 3 additions & 7 deletions dist/types/command.d.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
import { ExecutedFailure } from './common';
/**
* Command channel message
*/
export interface CommandChannelMsg {
/**
* sender id
Expand Down Expand Up @@ -35,13 +38,6 @@ export declare namespace CommandChannel {
* ```js
* const cmdChannel = client.getCommandClient()
* cmdChannel.send('test', userId)
* .then(() => {
* // success
* })
* .catch(v => {
* // fail
* console.log(v)
* })
* ```
*
* @param text
Expand Down
33 changes: 33 additions & 0 deletions dist/types/common.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,27 @@ interface Participant {
*/
sharePause: boolean;
}
/**
* Status of subsession
*/
export enum SubsessionStatus {
/**
* Subsession is not open
*/
NotStarted = 1,
/**
* Subsession is open
*/
InProgress = 2,
/**
* Subsession is closing, there may be a closing countdown
*/
Closing = 3,
/**
* Subsession is closed
*/
Closed = 4,
}

/**
* The state of dial out state
Expand Down Expand Up @@ -186,6 +207,18 @@ export enum ReconnectReason {
* meeting failover
*/
Failover = 'failover',
/**
* join the breakout subsession
*/
JoinSubsession = 'join breakout room',
/**
* move among the breakout subsessions
*/
MoveToSubsession = 'move to breakout room',
/**
* back to the main session
*/
BackToMainSession = 'back to main session',
}
/**
* Enumeration of video quality
Expand Down
Loading

0 comments on commit d602310

Please sign in to comment.