Hey, I have checked related posts for Unity integration but none of them provides proper solution, I have been trying to add zoom android sdk support to unity, I have been able to achieve below so far:
- Successfully added all dependencies (.aar and .jar files) needed for the zoom sdk (for libraries commonlib and mobilertc)
- Created a java class which extends from Activity, wrote function to InitializeZoom inside this class with JWT, called this java class function from unity and have successful zoom initialization (by manipulating unity main activity and context)
- Added many different functions in same java class like onZoomSDKInitializeResult, onZoomAuthIdentityExpired, onMeetingParameterNotification, joinZoomMeeting, onMeetingStatusChanged etc
- Could not use Meeting default UI as it fires up new activity which interfares with unity main activity causing it to crash or go into pause state, so instead used below code to enable custom UI:
zoomSDK.getMeetingSettingsHelper().setCustomizedMeetingUIEnabled(true); - Now I simply want to join a meeting with audio only using meeting no and password, checked documentation and wrote the implementation of joinMeetingWithParams. Also printed MeetingError (if any) and MeetingStatus (onMeetingStatusChanged) logs, did not work and I observed following weird behaviours:
-
when I create new meeting on my system using same account which I used to generate JWT ( from appkey and appsecret), upon trying to join the meeting from unity, it gives below logs: (stuck on connnecting)
Meeting Error: code: 0 , Start meeting successfully.
Meeting STATUS: Connecting, error= 0, internal error= 0 -
when I create meeting on my system using different account (other than which is used to create JWT for unity app), it gives below logs:
Meeting Error: code: 0 , Start meeting successfully.
Meeting STATUS: Connecting, error= 0, internal error= 0
Meeting STATUS: FAILED, error= 100, internal error= 6601
Meeting STATUS: Disconnecting, error= 0, internal error= 0
Meeting STATUS: IDLE, error= 0, internal error= 0
Environment and settings used
- unity 2022.3.5f1 LTS
- zoom sdk android v5.15.5.15204
- logcat to check device logs
- app key and app secret are used for developement environment
Note
I completely understand zoom sdk does not have proper support for unity, but im trying very best to use existing android sdk and implement minimum functionality inside unity. Currently been stuck, need guidance or direction what to do next to resolve issue (as im not much well versed in android) and have implementation which I could use to join a meeting with audio only.
Once im successful, would put everything on github and provide repo here so anyone coming after me could resume from where I left off.
looking forward for guidance, thanks