Description
I am try to write a zoom video sdk plugin for my android application, so that the device’s audio can connect correctly. While following the instruction on zoom video sdk android integration, I am able to initialize the zoom video sdk correctly, and join session call return not None value. While the connect audio function: startAudio() does not return success result. After some investigation, I realized it is due to the user is not in the session as isInSession() function always return false.
I would like to get some help regarding the problem of joinSession() been successful but isInSession() return false.
Which Android Video SDK version?
‘us.zoom.videosdk:zoomvideosdk-core:1.12.5’
To Reproduce(If applicable)
Steps to reproduce the behavior:
- Initialize zoom video sdk
- Calling joinSession() function
- Assert joinSession() return not null result, then call isInSession() function
- isInSession() always return false
Screenshots
2024-09-13 13:31:17.694 7063-7063 my-java-plgin com.example.app D SOPHIA - successfully initigetApplicationContextalized the zoom SDK -- ZoonNativeVideo
2024-09-13 13:31:26.620 7063-7163 my-java-plgin com.example.app D join() - Joining sesion
2024-09-13 13:31:26.620 7063-7163 my-java-plgin com.example.app D join() - token:eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhcHBfa2V5IjoiWVl2dTh6Ql9Rc0tFdzRPSXByTGxydyIsInJvbGVfdHlwZSI6MSwidHBjIjoiODE0Njg2NzQiLCJ2ZXJzaW9uIjoxLCJpYXQiOjE3MjYxMDc1NjAsImV4cCI6MTcyNjExNDc2MCwidXNlcl9pZGVudGl0eSI6NTA4NTAwNDR9.jh_SRZ0iYeP0m3zEMoyNgztBKaIxrKda5OYb3OKIJ_g
2024-09-13 13:31:26.620 7063-7163 my-java-plgin com.example.app D join() - sessionName:81468674
2024-09-13 13:31:26.620 7063-7163 my-java-plgin com.example.app D join() - userName:50850044_audio
2024-09-13 13:31:26.620 7063-7163 my-java-plgin com.example.app D join() - zoomContext.token :eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhcHBfa2V5IjoiWVl2dTh6Ql9Rc0tFdzRPSXByTGxydyIsInJvbGVfdHlwZSI6MSwidHBjIjoiODE0Njg2NzQiLCJ2ZXJzaW9uIjoxLCJpYXQiOjE3MjYxMDc1NjAsImV4cCI6MTcyNjExNDc2MCwidXNlcl9pZGVudGl0eSI6NTA4NTAwNDR9.jh_SRZ0iYeP0m3zEMoyNgztBKaIxrKda5OYb3OKIJ_g
2024-09-13 13:31:26.620 7063-7163 my-java-plgin com.example.app D join() - zoomContext.sessionName:81468674
2024-09-13 13:31:26.620 7063-7163 my-java-plgin com.example.app D join() - zoomContext.userName:50850044_audio
2024-09-13 13:31:26.639 7063-7163 my-java-plgin com.example.app D join() - succeed, sessionId:
2024-09-13 13:31:26.640 7063-7163 my-java-plgin com.example.app D
2024-09-13 13:31:26.640 7063-7163 my-java-plgin com.example.app D join() - succeed, sessionName:
2024-09-13 13:31:26.641 7063-7163 my-java-plgin com.example.app D 81468674
2024-09-13 13:31:26.641 7063-7163 my-java-plgin com.example.app D join() - isInSession:
2024-09-13 13:31:26.641 7063-7163 my-java-plgin com.example.app D false
Above is the log I printed for the below code:
ZoomVideoSDKSessionContext zoomContext = new ZoomVideoSDKSessionContext();
zoomContext.token = token;
zoomContext.sessionName = sessionName;
zoomContext.userName = userName;
zoomContext.audioOption = audioOption;
Log.d(TAG, "join() - zoomContext.token :" + zoomContext.token );
Log.d(TAG, "join() - zoomContext.sessionName:" + zoomContext.sessionName);
Log.d(TAG, "join() - zoomContext.userName:"+ zoomContext.userName);
ZoomVideoSDK sdk = ZoomVideoSDK.getInstance();
ZoomVideoSDKSession session = sdk.joinSession(zoomContext);
if (session != null) {
Log.d(TAG, "join() - succeed, sessionId: ");
Log.d(TAG, session.getSessionID());
Log.d(TAG, "join() - succeed, sessionName: ");
Log.d(TAG, session.getSessionName());
boolean isInSession = sdk.isInSession();
Log.d(TAG, "join() - isInSession:");
Log.d(TAG, String.valueOf(isInSession));
Troubleshooting Routes
Tried to use random string as JWT token, the joinSession()
function return null, while the JWT token provided to succesful connect the call returns a not null value, so I assume the problem is not related to JWT token. Besides, the same jwt token is able to successfully join the session on IOS device.
Smartphone (please complete the following information):
- Device: Pixel 2