Error on sample code for video sdk cdn with pure JS

I’m trying to runnig video sdk sample wih pure JS without Node on PHP.

I’ve found following video sdk cdn from forum, but not sure it is right or not.

// For ZoomVideo

Following is my code and There is an error “Zoomvideo is not defined.”

// For ZoomVideo
<script src="https://source.zoom.us/2.1.1/zoom-meeting-embedded-2.1.1.min.js"></script>
// For generateSignature
<script src="https://cdnjs.cloudflare.com/ajax/libs/jsrsasign/8.0.20/jsrsasign-all-min.js"></script>

<script>

function generateSignature(sdkKey, sdkSecret, sessionName, role, sessionKey, userIdentity) {

  const iat = Math.round((new Date().getTime() - 30000) / 1000)
  const exp = iat + 60 * 60 * 2
  const oHeader = { alg: 'HS256', typ: 'JWT' }

  const oPayload = {
    app_key: sdkKey,
    tpc: sessionName,
    role_type: role,
    session_key: sessionKey,
    user_identity: userIdentity,
    iat: iat,
    exp: exp
  }

  const sHeader = JSON.stringify(oHeader)
  const sPayload = JSON.stringify(oPayload)
  const sdkJWT = KJUR.jws.JWS.sign('HS256', sHeader, sPayload, sdkSecret)
  return sdkJWT
}

const client = ZoomVideo.createClient();
client.init('en-US', 'CDN');

token = generateSignature('My sdkKey Here', 'My SdkSecret Here', 'Cool Cars', 1, 'session123', 'user123');
topic = 'Cool Cars'
userName = 'user123';
password = 'session123';

// join
client.join(topic, token, userName, password);

// stream
stream = client.getMediaStream();


</script>

Hey @imslee100

Thanks for your feedback.
The link of the ZoomVideo is not correct. It’s linked to the MeetingSDK Web.

Thanks
Vic

Could you please let me know what is the ZoomVideo SDK CDN?
There is link on Zoom Video Documentation.

Hey @imslee100 ,

I will private message you about this.

Thanks,
Tommy