使用Zoom SDK最小化视频通话和共享视图 [英] Minimized video call and shared view with Zoom SDK

查看:142
本文介绍了使用Zoom SDK最小化视频通话和共享视图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将Zoom SDK会议集成到Android应用中.我一直在努力使用自定义会议ui并学习如何使用Zoom的称为 MobileRTCVideoView 的视频视图.这是我要创建的界面:

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 MobileRTCVideoView. Here's the interface I would like to create:

我尝试过的事情:

  • Studied Zoom's sample apps on Github.
  • Studied Zoom's documentation for customized meeting ui.
  • Asked on the developer forum.
  • Read related threads on the developer forum.

但是,我仍然不知道如何实现它,并且非常感谢您对如何使用 MobileRTCVideoView 以及实现图像上所示的会议ui的一些解释.会议一次最多只能容纳两个用户.

However, I still don't understand how to implement it, and would very much appreciate some explanation as to how to use MobileRTCVideoView, and achieving the meeting ui illustrated on the image. The meetings should only hold up to two users at a time.

我使用API​​密钥和密钥初始化Zoom SDK,并使用电子邮件登录.我通过以下方式启用自定义会议ui:

I initialize the Zoom SDK with API Key and Secret, and use email login. I enable the custom meeting ui with:

zoomSDK!!.meetingSettingsHelper.isCustomizedMeetingUIEnabled=true

我与以下人员开始即时会议

I start an instant meeting with:

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)

我试图通过为自定义会议创建另一个活动来跟踪示例应用程序,但是显然该类和代码并不完整:

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:

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<View>(R.id.meetingVideoView) as FrameLayout
        share_view = findViewById<View>(R.id.sharingView) as MobileRTCShareView
        video_view=normal_view!!.findViewById(R.id.videoView) as MobileRTCVideoView

    }

}

在清单中添加了活动:

    <activity
        android:name="com.mypackage.appname.CustomMeetingActivity"
        android:configChanges="orientation|keyboardHidden|screenSize"
        android:theme="@style/ZMTheme.SubWindow">
    </activity>

推荐答案

我可以提供的可靠建议是:

Solid advice I can give is:

  1. 覆盖或重用其现有样本以开始使用.(尽管他们的示例应用看起来像是匆忙完成的)
  2. 请勿使用其样式,不要覆盖其样式并使用它们.
  3. 扫描/研究MyMeetingActivity.大部分繁重的工作已经完成了.
  4. 检查两个样本.如果您无法从MyMeetingActivity中找到sharedView,那么您似乎还没有认真研究

在过去的几周中,我为此做了很多工作.定制的UI运行良好.我正在寻找图库"视图.我们拥有大量已添加和重复使用的功能.总的来说,这是一个颠簸的旅程,但是当我花时间在它上面时,它仍然很平稳.

I have worked a lot on this over the last few weeks. Customized UI is working well. I am looking to make the Gallery view. We have loads of features and functionality that we added and reused. Over all it was a bumpy ride, but still went smooth as I spent time on it.

我不明白为什么这个问题尚未得到解答.不幸的是,我太忙了,无法为您实际编写代码,特别是因为我什至没有在Kotlin进行开发.对不起.希望你能理解.如果我实现了画廊视图,那么也许我可以回来给您一些提示.祝你好运

I don't understand why this question is not yet answered. Unfortunately I am too busy to actually write code out for you, especially since I am not even developing in Kotlin. Sorry. Hope you figure it. If I implement the gallery view, then maybe I can come back and give you some pointers. Good Luck

这篇关于使用Zoom SDK最小化视频通话和共享视图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆