Skip to content

Commit

Permalink
1.12.10 update (#59)
Browse files Browse the repository at this point in the history
  • Loading branch information
mayk-zoom authored Oct 23, 2024
1 parent 2cf1a3f commit 3197bc3
Show file tree
Hide file tree
Showing 41 changed files with 183 additions and 141 deletions.
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.

1 change: 1 addition & 0 deletions dist/lib/0.min.js

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions dist/lib/annoter.min.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.
6 changes: 3 additions & 3 deletions dist/lib/audio_simd.min.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions dist/lib/js_audio_level_worklet_process.min.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions dist/lib/js_audio_process.min.js

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions dist/lib/js_audio_worklet_process.min.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions dist/lib/js_audio_worklet_simd.min.js

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions dist/lib/pako.min.js

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions dist/lib/sharing_m.min.js

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions dist/lib/sharing_mtsimd.min.js

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

10 changes: 10 additions & 0 deletions dist/lib/vendors~annoter.min.js

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion dist/lib/vendors~wmsc.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.
2 changes: 1 addition & 1 deletion dist/lib/video.mtsimd.js

Large diffs are not rendered by default.

Binary file modified dist/lib/video.mtsimd.wasm
Binary file not shown.
2 changes: 1 addition & 1 deletion dist/lib/video.simd.js

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions dist/lib/video_s.min.js

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions dist/lib/video_share_mtsimd.min.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions dist/lib/video_simd.min.js

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion dist/lib/wmsc.min.js

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions dist/types/common.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -488,6 +488,10 @@ export interface MediaPlaybackFile {
* Is loop
*/
loop?: boolean;
/**
* Whether to play the audio file locally
*/
playback?: boolean;
}

/**
Expand Down
64 changes: 34 additions & 30 deletions dist/types/event-callback.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -339,16 +339,22 @@ export declare function event_user_remove(
* Occurs when the remote video stream changes.
*
* ```javascript
* client.on('video-active-change', async(payload) => {
* try {
* if (payload.state === 'Active') {
* await stream.renderVideo(canvas,userId,1280,720,0,0,3);
* } else {
* await stream.stopRenderVideo(canvas,userId);
* }
* } catch (error) {
* console.log(error);
* }
* client.on("video-active-change", async (payload) => {
* try {
* if (payload.state === "Active") {
* const element = await stream.attachVideo(userId, VideoQuality.Video_720P);
* container.appendChild(element);
* } else {
* const elements = await stream.detachVideo(userId);
* if (Array.isArray(elements)) {
* elements.forEach((e) => e.remove());
* } else {
* elements.remove();
* }
* }
* } catch (error) {
* console.log(error);
* }
* });
* ```
* @param payload The event detail.
Expand Down Expand Up @@ -424,13 +430,19 @@ export declare function event_video_dimension_change(payload: {
* Occurs when other participants start or stop video.
*
* ```javascript
* client.on('peer-video-state-change', (payload) => {
* if (payload.action === 'Start') {
* stream.renderVideo(document.querySelector('#participants-canvas'), payload.userId, 960, 540, X_CORD, Y_CORD, 3)
* } else if (payload.action === 'Stop') {
* stream.stopRenderVideo(document.querySelector('#participants-canvas'), payload.userId)
* }
* })
* client.on("peer-video-state-change", async (payload) => {
* if (payload.action === "Start") {
* const element = await stream.attachVideo(userId, VideoQuality.Video_720P);
* container.appendChild(element);
* } else if (payload.action === "Stop") {
* const elements = await stream.detachVideo(userId);
* if (Array.isArray(elements)) {
* elements.forEach((e) => e.remove());
* } else {
* elements.remove();
* }
* }
* });
* ```
* @param payload
* @event
Expand Down Expand Up @@ -1579,21 +1591,13 @@ export declare function event_live_stream_status(status: LiveStreamStatus): void

/**
* Occurs when the SDK detects that the rendered video aspect ratio is not the same as the actual video aspect ratio.
* To correct the aspect ratio, use `stream.adjustRenderedVideoPosition()` to resize the video.
* To correct the aspect ratio, update `aspect-ratio` CSS style to correct the ratio.
*
* ```javascript
* client.on("video-aspect-ratio-change", async (payload) => {
* const { userId, aspectRatio } = payload;
* const height = width / aspectRatio;
* // resize the video
* await stream.adjustRenderedVideoPosition(
* canvasElm,
* userId,
* width,
* height,
* x,
* y
* );
* client.on("video-aspect-ratio-change", (payload) => {
* const { userId, aspectRatio } = payload;
* const videoPlayerElement = // look up the video-player element by userId
* videoPlayerElement.style.aspectRatio = aspectRatio;
* });
* ```
*
Expand Down
95 changes: 56 additions & 39 deletions dist/types/media.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,8 @@ export interface CaptureVideoOption {
*/
mirrored?: boolean;
/**
* @deprecated
* > **Note** will be removed in 2.x version, please use `stream.attachVideo` to render self-view directly.
* Video element. Only used in Android platform or non-SharedArrayBuffer Chromium-like browsers.
*/
videoElement?: HTMLVideoElement;
Expand Down Expand Up @@ -719,41 +721,6 @@ export declare namespace Stream {
* await stream.startAudio();
* ```
*
* Safari browser is different:
* ```javascript
* let audioDecode, audioEncode;
* // wait until the encoding and decoding process is ready for the audio
* client.on("media-sdk-change", (payload) => {
* const { action, type, result } = payload;
* if (type === "audio" && result === "success") {
* if (action === "encode") {
* audioEncode = true;
* } else if (action === "decode") {
* audioDecode = true;
* }
* if (audioDecode && audioEncode) {
* try {
* // start audio automatically in Safari
* stream.startAudio({ autoStartAudioInSafari: true });
* } catch (err) {
* console.warn(err);
* }
* }
* }
* });
*
* // Start audio in 'click' callback in Safari
* joinAudioButton.addEventListener("click", () => {
* if (audioDecode && audioDecode) {
* try {
* stream.startAudio();
* } catch (err) {
* console.warn(err);
* }
* }
* });
*
* ```
* @returns Executed promise. Possible error reasons:
* - type=`USER_FORBIDDEN_MICROPHONE`: The user has blocked accesses to the microphone from the SDK. Try to grant the privilege and rejoin the session.
* @category Audio
Expand Down Expand Up @@ -1119,6 +1086,16 @@ export declare namespace Stream {
* @category Audio
*/
function unmuteAllAudio(): ExecutedResult;
/**
* The host can set when the users to be muted when they start the audio.
* - Only the **host** or **manager** can do this.
*
* @param enable boolean default `true`
*
* @return executed promise.
* @category Audio
*/
function muteAudioUponStartAudio(enable?: boolean): ExecutedResult;
/**
* Determines whether the user is muted.
* - If the user ID is not specified, gets the muted status of the current user.
Expand Down Expand Up @@ -1213,6 +1190,23 @@ export declare namespace Stream {
*/
function isSupportMicrophoneAndShareAudioSimultaneously(): boolean;

/**
* Get the audio media file playback controller,
* It's only available when use media file as audio source, otherwise, it will return null
* @category Audio
*/
function getAudioMediaPlaybackController():
| (Pick<
HTMLAudioElement,
'play' | 'pause' | 'paused' | 'muted' | 'currentTime' | 'loop'
> & {
/**
* playback
*/
playback: boolean;
})
| null;

// -------------------------------------------------[video]-----------------------------------------------------------

/**
Expand Down Expand Up @@ -1594,7 +1588,7 @@ export declare namespace Stream {
* ```
*
* ```javascript
* const element = stream.attachVideo(userId,VideoQuality.Video_720P);
* const element = await stream.attachVideo(userId,VideoQuality.Video_720P);
* document.querySelector('.video-tile').appendChild(element);
* ```
* @param userId Required. The user ID which to render the video.
Expand All @@ -1613,7 +1607,7 @@ export declare namespace Stream {
* Detach the video stream from all previously attached VideoPlayer elements or specific elements.
*
* ```javascript
* const elements = stream.detachVideo(userId);
* const elements = await stream.detachVideo(userId);
* if (Array.isArray(elements)) {
* elements.forEach((e) => e.remove());
* } else {
Expand Down Expand Up @@ -1829,6 +1823,15 @@ export declare namespace Stream {
* @category Video
*/
function getSpotlightedUserList(): Array<Participant>;
/**
* Get the video media file playback controller,
* It's only available when use media file as video source, otherwise, it will return null
* @category Video
*/
function getVideoMediaPlaybackController(): Pick<
HTMLAudioElement,
'play' | 'pause' | 'paused' | 'muted' | 'currentTime' | 'loop'
> | null;

// -------------------------------------------------[share]-----------------------------------------------------------

Expand Down Expand Up @@ -2261,6 +2264,7 @@ export declare namespace Stream {
* - `Error`: Failure. Details in {@link ErrorTypes}.
*
* @category RemoteControl
* @ignore
*/
function requestRemoteControl(): ExecutedResult;
/**
Expand All @@ -2274,6 +2278,7 @@ export declare namespace Stream {
* - `Error`: Failure. Details in {@link ErrorTypes}.
*
* @category RemoteControl
* @ignore
*/
function approveRemoteControl(
userId: number,
Expand All @@ -2288,6 +2293,7 @@ export declare namespace Stream {
* - `Error`: Failure. Details in {@link ErrorTypes}.
*
* @category RemoteControl
* @ignore
*/
function declineRemoteControl(userId: number): ExecutedResult;
/**
Expand All @@ -2298,6 +2304,7 @@ export declare namespace Stream {
* - `Error`: Failure. Details in {@link ErrorTypes}.
*
* @category RemoteControl
* @ignore
*/
function stopRemoteControl(): ExecutedResult;
/**
Expand All @@ -2308,6 +2315,7 @@ export declare namespace Stream {
* - `Error`: Failure. Details in {@link ErrorTypes}.
*
* @category RemoteControl
* @ignore
*/
function giveUpRemoteControl(): ExecutedResult;

Expand Down Expand Up @@ -2338,6 +2346,7 @@ export declare namespace Stream {
* - `Error`: Failure. Details in {@link ErrorTypes}.
*
* @category RemoteControl
* @ignore
*/
function startRemoteControl(viewport: HTMLElement): ExecutedResult;
/**
Expand All @@ -2360,7 +2369,7 @@ export declare namespace Stream {
* viewportElement.addEventListener("click", (event) => {
* event.preventDefault();
* if (!stream.isControllingUserRemotely()) {
* stream.grabRemotoControl();
* stream.grabRemoteControl();
* }
* });
* ```
Expand All @@ -2370,8 +2379,9 @@ export declare namespace Stream {
* - `Error`: Failure. Details in {@link ErrorTypes}.
*
* @category RemoteControl
* @ignore
*/
function grabRemotoControl(): ExecutedResult;
function grabRemoteControl(): ExecutedResult;
/**
* The controlled user launches the remote control app manually.
*@param isAutoDeleteApp boolean
Expand All @@ -2380,6 +2390,7 @@ export declare namespace Stream {
* - `Error`: Failure. Details in {@link ErrorTypes}.
*
* @category RemoteControl
* @ignore
*/
function launchRemoteControlApp(isAutoDeleteApp?: boolean): ExecutedResult;

Expand All @@ -2389,13 +2400,15 @@ export declare namespace Stream {
* @returns boolean
*
* @category RemoteControl
* @ignore
*/
function isRemotelyControlApproved(): boolean;
/**
* Determines whether the controlling user is controlling the user.
* @returns boolean
*
* @category RemoteControl
* @ignore
*/
function isControllingUserRemotely(): boolean;
/**
Expand All @@ -2405,13 +2418,15 @@ export declare namespace Stream {
* @returns boolean
*
* @category RemoteControl
* @ignore
*/
function isTargetShareSupportRemoteControl(userId: number): boolean;
/**
* Get the download URL of the remote control app.
* @returns string
*
* @category RemoteControl
* @ignore
*/
function getRemoteControlAppDownloadUrl(): string;
/**
Expand All @@ -2420,12 +2435,14 @@ export declare namespace Stream {
* @returns Participant
*
* @category RemoteControl
* @ignore
*/
function getRemotelyControllingUser(): Participant | null;
/**
* Determines whether remote control is enabled.
* @returns boolean
* @category RemoteControl
* @ignore
*/
function isRemoteControlEnabled(): boolean;
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@zoom/videosdk",
"version": "1.12.5",
"version": "1.12.10",
"description": "Zoom Web Video SDK",
"main": "dist/index.js",
"module": "dist/index.esm.js",
Expand Down

0 comments on commit 3197bc3

Please sign in to comment.