[Android] embed zoom video into android ViewPager

Description

Hello,

I want to embed the zoom meeting view into an android ViewPager, to allow users to change different zoom meetings when swiping left and right.

However, seems from the SDK demo app, both the default zoom UI and custom UI extends the zoom base activities (MeetingActivity and ZMActivity), so I’m unable to fit it into my ViewPager. Is it possible to put the zoom meeting view into a fragment, and then I can load it into my ViewPager?

Thank you!

Which version?
the latest version I just downloaded today

Hi gerger,

Thanks for using Zoom SDK. If you are using Custom UI, there are no restrictions on this, you could extend regular activities and do the way you prefer. Zoom default UI might not be able to do the way you are mentioning.

Thanks!

Hi Carson,

Thanks for your reply! So do you mean that I can apply the Zoom Custom UI without extending the Zoom SDK’s ZMActivity? Then how can I join / start a zoom meeting? I can’t find any example in the two zoom demo apps, can you provide some more details on the custom UI? I have read the documentations about custom UI here: https://marketplace.zoom.us/docs/sdk/native-sdks/android/mastering-zoom-sdk/in-meeting-function/customized-meeting-ui/overview

Thank you!
Gerger

Hi Gerger,

Thanks for the reply. The start/join meeting for both Zoom default UI and the Custom UI is the same, for Custom UI, you just need to:

  1. Tell SDK that you are going to use Custom UI so SDK will not show Zoom default UI when the meeting starts: https://github.com/zoom/zoom-sdk-android/blob/master/mobilertc-android-studio/sample/src/main/java/us/zoom/sdksample/ui/MeetingSettingActivity.java#L178
  2. When starting or joining a meeting, present the customized UI: https://github.com/zoom/zoom-sdk-android/blob/master/mobilertc-android-studio/sample/src/main/java/us/zoom/sdksample/ui/LoginUserStartJoinMeetingActivity.java#L279
  3. You may refer to the implementation in the following classes: https://github.com/zoom/zoom-sdk-android/blob/master/mobilertc-android-studio/sample/src/main/java/us/zoom/sdksample/ui/LoginUserStartJoinMeetingActivity.java or https://github.com/zoom/zoom-sdk-android/blob/master/mobilertc-android-studio/sample/src/main/java/us/zoom/sdksample/ui/InitAuthSDKActivity.java

Hope this helps. Thanks!