Not able to join session in Video SDK v1.1.0

Description
I have a custom zoom call integration in swift. I’m trying to join a session by calling joinSession() the returned value is not nil but the client is not joining the session. I know this because the ZoomVideoSDKDelegate's callback - onSessionJoin() is not getting invoked. Also I have a web implementation with the same topic and I don’t get any event for user-added callback over there.

Not sure what is going wrong here.

Which iOS Video SDK version?
v1.1.0

To Reproduce(If applicable)
Steps to reproduce the behavior:

  1. Go to ‘Download Video SDK for iOS v1.1.0’
  2. Setup the SDK in your app
  3. Initialize the SDK
  4. Join session:
  let sessionContext = ZoomVideoSDKSessionContext()
    sessionContext.token = token
    sessionContext.sessionName = name
    sessionContext.userName = userName
    let session = ZoomVideoSDK.shareInstance()?.joinSession(sessionContext)
    if session != nil {
      print("Joined seession")
    } else {
      print("Error in joining session")
    }
.
.
.
  func onSessionJoin() {
    print("onSession join triggered")
  }

“Joined seession” prints successfully but “onSession join triggered” is not printed

Smartphone (please complete the following information):

  • Device: iPhone 11
  • OS: iOS 14.5

Additional context
This is my payload to generate the JWT token:

{
   "app_key": "######",
   "iat": 1625395547,
   "exp": 1625481947,
   "tpc": "Test",
   "version": 1,
   "user_identity": "user123"
}

Hey @Surendhar95,

Thanks for using the dev forum!

Can you also implement the onError delegate function and let me know what that returns after attempting to join a session?

Thanks!
Michael

Hey @Michael_Condon

Thanks for reverting back.

I have implemented the onError callback like this:

func onError(_ ErrorType: ZoomVideoSDKERROR, detail details: Int) {
    switch ErrorType {
      case .Errors_Success:
      print("Success")
      default:
      print("Error \(ErrorType) \(details)")
      return
    }
  }

The callback was never called when I attempted to join the session.

Hey @Surendhar95,

Is the value in the “tpc” field of your JWT payload the same as the sessionName?
Are you initializing the SDK first?

Thanks!
Michael

Hey @Michael_Condon

Yeah the value of the sessionName and the “tpc” key in the payload is the same.
And yeah I’m initializing the SDK before attempting to join the session. I’m calling joinSession in the success block after SDK initialization.

Thanks!

Hmm interesting. Can you reproduce one more time and send your logs to developersupport@zoom.us? Please provide a link to this post in your email. To obtain the logs, follow the instructions at the bottom of this page: https://marketplace.zoom.us/docs/sdk/native-sdks/iOS/mastering-zoom-sdk/sdk-initialization. The instructions are technically for the Client SDK but are the same for the video SDK.

Thanks!
Michael

Hey @Surendhar95,

Can you try recreating a JWT following the instructions here: https://devsupport.zoom.us/hc/en-us/articles/360059893552-How-to-create-a-sample-JWT-for-the-Client-SDK. When it is time to past in the payload, please use the one here: https://marketplace.zoom.us/docs/sdk/video/auth

I am suspecting that somehow the JWT generation is failing.

Thanks!
Michael

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