Skip to content

Commit

Permalink
upgraded to meeting sdk 2.4.5
Browse files Browse the repository at this point in the history
  • Loading branch information
tommygaessler committed Jun 3, 2022
1 parent dd5bcf7 commit 2ac3b77
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 45 deletions.
42 changes: 21 additions & 21 deletions client-view.js
Original file line number Diff line number Diff line change
@@ -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, {
Expand All @@ -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) {
Expand All @@ -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)
Expand Down
30 changes: 15 additions & 15 deletions component-view.js
Original file line number Diff line number Diff line change
@@ -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, {
Expand All @@ -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) {
Expand Down
18 changes: 9 additions & 9 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
<title>Zoom Meeting SDK Sample JavaScript</title>

<!-- For Client View -->
<link type="text/css" rel="stylesheet" href="https://source.zoom.us/2.4.0/css/bootstrap.css" />
<link type="text/css" rel="stylesheet" href="https://source.zoom.us/2.4.0/css/react-select.css" />
<link type="text/css" rel="stylesheet" href="https://source.zoom.us/2.4.5/css/bootstrap.css" />
<link type="text/css" rel="stylesheet" href="https://source.zoom.us/2.4.5/css/react-select.css" />

<link rel="stylesheet" href="styles.css">

Expand All @@ -29,18 +29,18 @@ <h1>Zoom Meeting SDK Sample JavaScript</h1>
</main>

<!-- For Component and Client View -->
<script src="https://source.zoom.us/2.4.0/lib/vendor/react.min.js"></script>
<script src="https://source.zoom.us/2.4.0/lib/vendor/react-dom.min.js"></script>
<script src="https://source.zoom.us/2.4.0/lib/vendor/redux.min.js"></script>
<script src="https://source.zoom.us/2.4.0/lib/vendor/redux-thunk.min.js"></script>
<script src="https://source.zoom.us/2.4.0/lib/vendor/lodash.min.js"></script>
<script src="https://source.zoom.us/2.4.5/lib/vendor/react.min.js"></script>
<script src="https://source.zoom.us/2.4.5/lib/vendor/react-dom.min.js"></script>
<script src="https://source.zoom.us/2.4.5/lib/vendor/redux.min.js"></script>
<script src="https://source.zoom.us/2.4.5/lib/vendor/redux-thunk.min.js"></script>
<script src="https://source.zoom.us/2.4.5/lib/vendor/lodash.min.js"></script>

<!-- For Client View -->
<script src="https://source.zoom.us/zoom-meeting-2.4.0.min.js"></script>
<script src="https://source.zoom.us/zoom-meeting-2.4.5.min.js"></script>
<script type="text/javascript" src="client-view.js"></script>

<!-- For Component View -->
<!-- <script src="https://source.zoom.us/2.4.0/zoom-meeting-embedded-2.4.0.min.js"></script> -->
<!-- <script src="https://source.zoom.us/2.4.5/zoom-meeting-embedded-2.4.5.min.js"></script> -->
<!-- <script type="text/javascript" src="component-view.js"></script> -->

</body>
Expand Down

0 comments on commit 2ac3b77

Please sign in to comment.