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=""></script>
// For generateSignature
<script src=""></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();


Hey @imslee100

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


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.


Hi Tommy!
Could you advise me too?

Hey @evgen_dev ,

Just sent you a private message.


This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.