kenjivn
(kenjivn)
September 23, 2021, 11:54am
1
Description
userID alway is 16778240
Which Android Video SDK version?
zoom-video-sdk-android-1.1.1
I use JWTUtil.createJWTAccessToken to create token, apiKey and apiSecret i take from App credentials of Videos app sdk
Screenshots
If applicable, add screenshots to help explain your problem.
Smartphone (please complete the following information):
thanks for the awesome information.
jon.zoom
(Jon)
September 23, 2021, 7:23pm
3
Hi @kenjivn , thanks for the post.
Can you please verify which method you are using to retrieve the ID?
Thanks!
1 Like
kenjivn
(kenjivn)
September 24, 2021, 1:29am
4
Hi @jon.zoom ,
Init sdk:
ZoomVideoSDKInitParams params = new ZoomVideoSDKInitParams();
params.domain = "https://zoom.us"; // Required
params.logFilePrefix = LOG_TAG; // Optional for debugging
params.enableLog = true; // Optional for debugging
ZoomVideoSDK sdk = ZoomVideoSDK.getInstance();
int initResult = sdk.initialize(mContext, params);
JoinOrCreateSession:
ZoomVideoSDKSessionContext sessionContext = new ZoomVideoSDKSessionContext();
sessionContext.sessionName = "zp95869048";
String sessionId = "zp95869048";
String userID = "demoabc";
String apiKey; //from app
String apiSecret; //from app
sessionContext.userName = userID;
sessionContext.token = JWTUtil.createJWTAccessToken(sessionId, userID, apiKey, apiSecret);
ZoomVideoSDKSession session = ZoomVideoSDK.getInstance().joinSession(sessionContext);
Get User info in onSessionJoin of ZoomVideoSDKDelegate:
ZoomVideoSDKSession sdkSession = ZoomVideoSDK.getInstance().getSession();
String userID = sdkSession.getMySelf().getUserID(); //userID return "16778240", not "demoabc"
jon.zoom
(Jon)
September 24, 2021, 3:59pm
5
Hi @kenjivn ,
The value returned by getUserID
is generated by Zoom’s back end. It seems that you are looking for the value provided in the user_identity
field of the JWT, which would be retrieved from the getCustomIdentity
method.
Thanks!
1 Like
system
(system)
Closed
October 25, 2021, 1:59am
6
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.