From 0b98f05d1d64e57bc5ce500a8bc7726adf03f4ff Mon Sep 17 00:00:00 2001 From: Saud <65331551+saudsami@users.noreply.github.com> Date: Fri, 8 Mar 2024 11:45:44 +0500 Subject: [PATCH] Resolved Endoc 111 and 117 (#1001) * ENDOC-117 updates * ENDOC-111 Updates --- .../get-started-sdk/create-engine.mdx | 20 ++++++++++--------- .../enable-features/screenshot-upload.mdx | 2 +- .../enable-features/screenshot-upload.mdx | 2 +- 3 files changed, 13 insertions(+), 11 deletions(-) diff --git a/assets/code/video-sdk/get-started-sdk/create-engine.mdx b/assets/code/video-sdk/get-started-sdk/create-engine.mdx index 3d6a352da..9f3d503e2 100644 --- a/assets/code/video-sdk/get-started-sdk/create-engine.mdx +++ b/assets/code/video-sdk/get-started-sdk/create-engine.mdx @@ -188,16 +188,17 @@ + ```javascript - const AgoraRTCManager = async (eventsCallback) => { + const AgoraRTCManager = (eventsCallback) => { let agoraEngine = null; // Set up the signaling engine with the provided App ID, UID, and configuration - const setupAgoraEngine = async () => { - agoraEngine = new AgoraRTC.createClient({ mode: "live", codec: "vp9" }); + const setupAgoraEngine = () => { + agoraEngine = AgoraRTC.createClient({ mode: "live", codec: "vp9" }); }; - await setupAgoraEngine(); + setupAgoraEngine(); const getAgoraEngine = () => { return agoraEngine; @@ -205,17 +206,18 @@ }; ``` - + + ```javascript - const AgoraRTCManager = async (eventsCallback) => { + const AgoraRTCManager = (eventsCallback) => { let agoraEngine = null; // Set up the signaling engine with the provided App ID, UID, and configuration - const setupAgoraEngine = async () => { - agoraEngine = new AgoraRTC.createClient({ mode: "rtc", codec: "vp9" }); + const setupAgoraEngine = () => { + agoraEngine = AgoraRTC.createClient({ mode: "rtc", codec: "vp9" }); }; - await setupAgoraEngine(); + setupAgoraEngine(); const getAgoraEngine = () => { return agoraEngine; diff --git a/broadcast-streaming/enable-features/screenshot-upload.mdx b/broadcast-streaming/enable-features/screenshot-upload.mdx index 70c8ce6e1..3659accf6 100644 --- a/broadcast-streaming/enable-features/screenshot-upload.mdx +++ b/broadcast-streaming/enable-features/screenshot-upload.mdx @@ -1,5 +1,5 @@ --- -title: 'Video screenshot upload' +title: 'Local screenshot upload' sidebar_position: 7 type: docs description: > diff --git a/interactive-live-streaming/enable-features/screenshot-upload.mdx b/interactive-live-streaming/enable-features/screenshot-upload.mdx index 3eda31399..3659accf6 100644 --- a/interactive-live-streaming/enable-features/screenshot-upload.mdx +++ b/interactive-live-streaming/enable-features/screenshot-upload.mdx @@ -1,5 +1,5 @@ --- -title: 'Screenshot upload' +title: 'Local screenshot upload' sidebar_position: 7 type: docs description: >