From 2ac3b778dcd2a18a6fe7286c4966fce50085e0f3 Mon Sep 17 00:00:00 2001 From: tommygaessler Date: Fri, 3 Jun 2022 10:58:31 -0600 Subject: [PATCH] upgraded to meeting sdk 2.4.5 --- client-view.js | 42 +++++++++++++++++++++--------------------- component-view.js | 30 +++++++++++++++--------------- index.html | 18 +++++++++--------- 3 files changed, 45 insertions(+), 45 deletions(-) diff --git a/client-view.js b/client-view.js index 85111bb..79fb8d3 100644 --- a/client-view.js +++ b/client-view.js @@ -1,24 +1,24 @@ -ZoomMtg.preLoadWasm(); -ZoomMtg.prepareWebSDK(); +ZoomMtg.preLoadWasm() +ZoomMtg.prepareWebSDK() // loads language files, also passes any error messages to the ui -ZoomMtg.i18n.load('en-US'); -ZoomMtg.i18n.reload('en-US'); +ZoomMtg.i18n.load('en-US') +ZoomMtg.i18n.reload('en-US') -ZoomMtg.setZoomJSLib('https://source.zoom.us/2.4.0/lib', '/av'); +ZoomMtg.setZoomJSLib('https://source.zoom.us/2.4.5/lib', '/av') // setup your signature endpoint here: https://github.com/zoom/meetingsdk-sample-signature-node.js -var signatureEndpoint = ''; -var sdkKey = ''; -var meetingNumber = '123456789'; -var role = 0; -var leaveUrl = 'https://zoom.us'; -var userName = 'JavaScript'; +var signatureEndpoint = '' +var sdkKey = '' +var meetingNumber = '123456789' +var role = 0 +var leaveUrl = 'http://localhost:8080' +var userName = 'JavaScript' var userEmail = '' -var passWord = ''; +var passWord = '' // pass in the registrant's token if your meeting or webinar requires registration. More info here: -// Meetings: https://marketplace.zoom.us/docs/sdk/native-sdks/web/client-view/meetings#join-registered -// Webinars: https://marketplace.zoom.us/docs/sdk/native-sdks/web/client-view/webinars#join-registered -var registrantToken = ''; +// Meetings: https://marketplace.zoom.us/docs/sdk/native-sdks/web/client-view/meetings#join-meeting-with-registration-required +// Webinars: https://marketplace.zoom.us/docs/sdk/native-sdks/web/client-view/webinars#join-webinar-with-registration-required +var registrantToken = '' function getSignature() { fetch(signatureEndpoint, { @@ -31,13 +31,13 @@ function getSignature() { role: role }) }).then((response) => { - return response.json(); + return response.json() }).then((data) => { console.log(data) startMeeting(data.signature) }).catch((error) => { - console.log(error); - }); + console.log(error) + }) } function startMeeting(signature) { @@ -57,12 +57,12 @@ function startMeeting(signature) { passWord: passWord, tk: registrantToken, success: (success) => { - console.log(success); + console.log(success) }, error: (error) => { - console.log(error); + console.log(error) }, - }); + }) }, error: (error) => { console.log(error) diff --git a/component-view.js b/component-view.js index ced6800..81cedae 100644 --- a/component-view.js +++ b/component-view.js @@ -1,24 +1,24 @@ -const client = ZoomMtgEmbedded.createClient(); +const client = ZoomMtgEmbedded.createClient() -let meetingSDKElement = document.getElementById('meetingSDKElement'); +let meetingSDKElement = document.getElementById('meetingSDKElement') // setup your signature endpoint here: https://github.com/zoom/meetingsdk-sample-signature-node.js -var signatureEndpoint = ''; -var sdkKey = ''; -var meetingNumber = '123456789'; -var role = 0; -var userName = 'JavaScript'; +var signatureEndpoint = '' +var sdkKey = '' +var meetingNumber = '123456789' +var role = 0 +var userName = 'JavaScript' var userEmail = '' -var passWord = ''; +var passWord = '' // pass in the registrant's token if your meeting or webinar requires registration. More info here: -// Meetings: https://marketplace.zoom.us/docs/sdk/native-sdks/web/client-view/meetings#join-registered -// Webinars: https://marketplace.zoom.us/docs/sdk/native-sdks/web/client-view/webinars#join-registered -var registrantToken = ''; +// Meetings: https://marketplace.zoom.us/docs/sdk/native-sdks/web/component-view/meetings#join-meeting-with-registration-required +// Webinars: https://marketplace.zoom.us/docs/sdk/native-sdks/web/component-view/webinars#join-webinar-with-registration-required +var registrantToken = '' client.init({ zoomAppRoot: meetingSDKElement, language: 'en-US', -}); +}) function getSignature() { fetch(signatureEndpoint, { @@ -31,13 +31,13 @@ function getSignature() { role: role }) }).then((response) => { - return response.json(); + return response.json() }).then((data) => { console.log(data) startMeeting(data.signature) }).catch((error) => { - console.log(error); - }); + console.log(error) + }) } function startMeeting(signature) { diff --git a/index.html b/index.html index a8fcf10..89db5c8 100644 --- a/index.html +++ b/index.html @@ -5,8 +5,8 @@ Zoom Meeting SDK Sample JavaScript - - + + @@ -29,18 +29,18 @@

Zoom Meeting SDK Sample JavaScript

- - - - - + + + + + - + - +