trtc-sdk-v5 5.18.2-beta.4 → 5.18.2-beta.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/plugins/cdn-streaming/package.json +1 -1
- package/plugins/chorus/package.json +1 -1
- package/plugins/cross-room/package.json +1 -1
- package/plugins/custom-encryption/package.json +1 -1
- package/plugins/device-detector/package.json +1 -1
- package/plugins/interactive-whiteboard/package.json +1 -1
- package/plugins/lebplayer/package.json +1 -1
- package/plugins/realtime-transcriber/package.json +1 -1
- package/plugins/small-stream-auto-switcher/package.json +1 -1
- package/plugins/video-decoder/package.json +1 -1
- package/plugins/video-effect/basic-beauty/package.json +1 -1
- package/plugins/video-effect/beauty/package.json +1 -1
- package/plugins/video-effect/face-detection/package.json +1 -1
- package/plugins/video-effect/video-mixer/package.json +1 -1
- package/plugins/video-effect/virtual-background/package.json +1 -1
- package/plugins/video-effect/watermark/package.json +1 -1
- package/plugins/voice-changer/package.json +1 -1
- package/plugins/whiteboard/package.json +1 -1
- package/plugins/whiteboard/whiteboard.esm.d.ts +11 -11
- package/plugins/whiteboard/whiteboard.esm.js +1 -1
- package/plugins/whiteboard/whiteboard.umd.js +2 -2
- package/trtc.esm.js +2 -2
- package/trtc.js +1 -1
package/package.json
CHANGED
|
@@ -74,9 +74,9 @@ export enum WhiteboardEvent {
|
|
|
74
74
|
STOPPED = 'stopped',
|
|
75
75
|
ERROR = 'error',
|
|
76
76
|
/** Guest only: emitted when the ACK feedback loop enters `stalled`. */
|
|
77
|
-
|
|
77
|
+
STALLED = 'stalled',
|
|
78
78
|
/** Guest only: emitted when a SESSION_START batch resend exits stalled. */
|
|
79
|
-
|
|
79
|
+
RESUMED = 'resumed',
|
|
80
80
|
/** Host + Guest: undo availability changed. */
|
|
81
81
|
UNDO_STATE_CHANGED = 'undo-state-changed',
|
|
82
82
|
/** Host + Guest: redo availability changed. */
|
|
@@ -84,9 +84,9 @@ export enum WhiteboardEvent {
|
|
|
84
84
|
}
|
|
85
85
|
|
|
86
86
|
/** Reason why the guest ACK feedback loop entered `stalled`. */
|
|
87
|
-
export type SessionStalledReason = 'silence' | 'queue-full';
|
|
87
|
+
export type SessionStalledReason = 'silence' | 'queue-full' | 'ack-timeout';
|
|
88
88
|
|
|
89
|
-
/** Payload carried by `
|
|
89
|
+
/** Payload carried by `STALLED`. */
|
|
90
90
|
export interface WhiteboardSessionStalledInfo {
|
|
91
91
|
/** Target host userId. */
|
|
92
92
|
targetUser: string;
|
|
@@ -96,7 +96,7 @@ export interface WhiteboardSessionStalledInfo {
|
|
|
96
96
|
reason: SessionStalledReason;
|
|
97
97
|
}
|
|
98
98
|
|
|
99
|
-
/** Payload carried by `
|
|
99
|
+
/** Payload carried by `RESUMED`. */
|
|
100
100
|
export interface WhiteboardSessionResumedInfo {
|
|
101
101
|
/** Target host userId. */
|
|
102
102
|
targetUser: string;
|
|
@@ -315,17 +315,17 @@ export default class Whiteboard {
|
|
|
315
315
|
on(event: WhiteboardEvent.STOPPED | 'stopped', handler: () => void): this;
|
|
316
316
|
/** Subscribe to `ERROR`. */
|
|
317
317
|
on(event: WhiteboardEvent.ERROR | 'error', handler: (err: Error) => void): this;
|
|
318
|
-
/** Subscribe to `
|
|
319
|
-
on(event: WhiteboardEvent.
|
|
320
|
-
/** Subscribe to `
|
|
321
|
-
on(event: WhiteboardEvent.
|
|
318
|
+
/** Subscribe to `STALLED` (guest only). */
|
|
319
|
+
on(event: WhiteboardEvent.STALLED | 'stalled', handler: (info: WhiteboardSessionStalledInfo) => void): this;
|
|
320
|
+
/** Subscribe to `RESUMED` (guest only). */
|
|
321
|
+
on(event: WhiteboardEvent.RESUMED | 'resumed', handler: (info: WhiteboardSessionResumedInfo) => void): this;
|
|
322
322
|
|
|
323
323
|
/** Subscribe-once helpers (same overloads as `on`). */
|
|
324
324
|
once(event: WhiteboardEvent.STARTED | 'started', handler: () => void): this;
|
|
325
325
|
once(event: WhiteboardEvent.STOPPED | 'stopped', handler: () => void): this;
|
|
326
326
|
once(event: WhiteboardEvent.ERROR | 'error', handler: (err: Error) => void): this;
|
|
327
|
-
once(event: WhiteboardEvent.
|
|
328
|
-
once(event: WhiteboardEvent.
|
|
327
|
+
once(event: WhiteboardEvent.STALLED | 'stalled', handler: (info: WhiteboardSessionStalledInfo) => void): this;
|
|
328
|
+
once(event: WhiteboardEvent.RESUMED | 'resumed', handler: (info: WhiteboardSessionResumedInfo) => void): this;
|
|
329
329
|
|
|
330
330
|
/** Unsubscribe a previously registered handler. Pass no `handler` to remove all for the event. */
|
|
331
331
|
off(event: WhiteboardEvent | `${WhiteboardEvent}`, handler?: (...args: any[]) => void): this;
|