-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
- Loading branch information
There are no files selected for viewing
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,27 +30,16 @@ export declare enum ChatMsgType { | |
All = 0, | ||
} | ||
/** | ||
* The chat interface provides the methods define the chat behavior | ||
* | ||
* The chat object can be accessed by `getFeatureModule` method of a `ZoomMeeting` instance. | ||
* The chat client provides the methods define the chat behavior | ||
* ```js | ||
* const client = ZoomMeeting.createClient(); | ||
* client.init( | ||
* sdkKey, | ||
* makeSignature(), | ||
* ..., | ||
* ['chat'], // to enable chat interface | ||
* ); | ||
* client.join(meetingNumber, 'test', '', '[email protected]') | ||
* const client = ZoomVideo.createClient(); | ||
* | ||
* ``` | ||
* | ||
* after joining meeting success, chat interface is available | ||
* After joining meeting success, chat client is available | ||
* | ||
* ```js | ||
* const chat = client.getFeatureModule('chat'); | ||
* if (chat) { | ||
* chat.getHistory(); // chat methods can be used now | ||
* } | ||
* const chat = client.getChatClient(); | ||
* // start to receive chat message | ||
* client.on('chat-on-message', (v) => { | ||
* console.log(v); | ||
|
@@ -66,8 +55,7 @@ export declare namespace ChatClient { | |
* chat.sendMessage('test', userId) | ||
* .then(() => { | ||
* // success | ||
* }) | ||
* .catch(v => { | ||
* }).catch(v => { | ||
* // fail | ||
* console.log(v) | ||
* }) | ||
|
@@ -92,14 +80,14 @@ export declare namespace ChatClient { | |
function sendToAll(text: string): Promise<ChatMessage | Error>; | ||
|
||
/** | ||
* host or co-Host use it to change chat privilege which defines what kind of role of user that attendee can talk to, there are the different privilege as following. | ||
* 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. | ||
* | ||
| | privilege value | describe | | ||
|---------|--------------------------------|-----------------------------------------------------| | ||
| meeting | ChatPrivilege.All | attendee can talk to everyone | | ||
| | ChatPrivilege.NoOne | attendee can talk to no one | | ||
| | ChatPrivilege.EveryonePublicly | attendee can talk to host, manager and everyone | | ||
| 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 | | ||
* | ||
* #### example | ||
* | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
import { ExecutedFailure } from './common'; | ||
export interface CommandChannelMsg { | ||
/** | ||
* sender id | ||
*/ | ||
senderId: number; | ||
/** | ||
* sender name | ||
*/ | ||
senderName?: string; | ||
/** | ||
* receiver id, when send to all no receiverId | ||
*/ | ||
receiverId?: number; | ||
/** | ||
* content | ||
*/ | ||
text: string; | ||
/** | ||
* timestamp | ||
*/ | ||
timestamp: number; | ||
/** | ||
* msgid | ||
*/ | ||
msgid?: string; | ||
} | ||
|
||
export declare namespace CommandChannel { | ||
/** | ||
* send string text through command channel | ||
* #### example only work to VideoSDK | ||
* ```js | ||
* const cmdChannel = client.getCommandClient() | ||
* cmdChannel.send('test', userId) | ||
* .then(() => { | ||
* // success | ||
* }) | ||
* .catch(v => { | ||
* // fail | ||
* console.log(v) | ||
* }) | ||
* ``` | ||
* | ||
* @param text | ||
* @param userId is not pass userId, will send to all | ||
* | ||
* @return ExecutedResult | ||
*/ | ||
function send( | ||
text: string, | ||
userId?: number, | ||
): Promise<ExecutedFailure | CommandChannelMsg>; | ||
} |