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: >