title: Minimized video call and shared view with Zoom SDK
body: <p>I'm trying to integrate Zoom SDK meetings in an Android app. I've struggled for a while now with using the custom meeting ui and learning how to use Zoom's video view called <code>MobileRTCVideoView</code>. Here's the interface I would like to create:</p>
  
  <p><a href="https://i.stack.imgur.com/vvRGQ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/vvRGQ.png" alt="custom meeting ui with minimized user video views and a shared view"></a></p>
  
  <p>What I've tried:</p>
  
  <ul>
  <li>Studied Zoom's sample apps on <a href="https://github.com/zoom/zoom-sdk-android" rel="nofollow noreferrer">Github</a>.</li>
  <li>Studied Zoom's <a href="https://marketplace.zoom.us/docs/sdk/native-sdks/android/mastering-zoom-sdk/in-meeting-function/customized-meeting-ui/overview" rel="nofollow noreferrer">documentation</a> for customized meeting ui.</li>
  <li><a href="https://devforum.zoom.us/t/custom-meeting-ui-resized-user-cam-shared-view/15718" rel="nofollow noreferrer">Asked</a> on the developer forum.</li>
  <li>Read <a href="https://devforum.zoom.us/t/android-video-call-minimization/224/8" rel="nofollow noreferrer">related threads</a> on the developer forum. </li>
  </ul>
  
  <p>However, I still don't understand how to implement it, and would very much appreciate some explanation as to how to use <code>MobileRTCVideoView</code>, and achieving the meeting ui illustrated on the image. The meetings should only hold up to two users at a time.</p>
  
  <p>I initialize the Zoom SDK with API Key and Secret, and use email login. I enable the custom meeting ui with:</p>
  
  <pre><code>zoomSDK!!.meetingSettingsHelper.isCustomizedMeetingUIEnabled=true
  </code></pre>
  
  <p>I start an instant meeting with:</p>
  
  <pre><code>val meetingService=zoomSDK!!.meetingService
  val opts=InstantMeetingOptions()
  opts.no_driving_mode = true
  opts.no_invite = false
  opts.no_meeting_end_message = false
  opts.no_titlebar = false
  opts.no_bottom_toolbar = false
  opts.no_dial_in_via_phone = true
  opts.no_dial_out_to_phone = true
  opts.no_disconnect_audio = true
  meetingService.startInstantMeeting(this,opts)
  </code></pre>
  
  <p>I've tried to follow the sample apps by creating another activity for the custom meetings, but apparently the class and the code is not complete:</p>
  
  <pre><code>class CustomMeetingActivity: FragmentActivity() {
  
      private var zoomSDK:ZoomSDK?=null
      private var inflater:LayoutInflater?=null
      private var normal_view:View?=null
      private var video_view:MobileRTCVideoView?=null
      private var video_manager:MobileRTCVideoViewManager?=null
      private var meeting_service:MeetingService?=null
      private var in_meeting_service:InMeetingService?=null
      private var share_view:MobileRTCShareView?=null
      private var meeting_video_view:FrameLayout?=null
  
      override fun onCreate(savedInstanceState: Bundle?) {
          super.onCreate(savedInstanceState)
  
          zoomSDK=ZoomSDK.getInstance()
          meeting_service = ZoomSDK.getInstance().meetingService
          in_meeting_service=ZoomSDK.getInstance().inMeetingService
          if(meeting_service==null || in_meeting_service==null){finish();return}
  
          setContentView(R.layout.custom_meeting_layout)
  
          inflater=layoutInflater;
          normal_view = inflater!!.inflate(R.layout.meeting_content_normal,null)
          meeting_video_view = findViewById&lt;View&gt;(R.id.meetingVideoView) as FrameLayout
          share_view = findViewById&lt;View&gt;(R.id.sharingView) as MobileRTCShareView
          video_view=normal_view!!.findViewById(R.id.videoView) as MobileRTCVideoView
  
      }
  
  }
  </code></pre>
  
  <p>Added the activity in the manifest:</p>
  
  <pre><code>    &lt;activity
          android:name="com.mypackage.appname.CustomMeetingActivity"
          android:configChanges="orientation|keyboardHidden|screenSize"
          android:theme="@style/ZMTheme.SubWindow"&gt;
      &lt;/activity&gt;
  </code></pre>