PRADEEP TRIVEDI
PRADEEP TRIVEDI

Reputation: 1

AgoraClassroomSDK Not allowing to Show Teacher in Full Page & showing in Thumbnail just same like Students Issue Android(Kotlin)

**So the requirement is very clear, I have 2 different users called Student & Teacher.

So while Launching Student App we need to make sure that All students who joined lecture should show in thumbnail & Teacher should show in Full Screen Video Mode.

But right now the issue is Teacher it self also showing in thumbnail mode on top of the application.**

** I want to require to View Class Video In full screen and Half screen through toggle button **

{

        runOnUiThread {
            eduCore()?.eduContextPool()?.let { context ->
                context.roomContext()?.addHandler(roomHandler)
                // header area
                if (getUIConfig().isHeaderVisible) {
                    binding.agoraClassHead.initView(this)
                    binding.agoraClassHead.onExitListener = {
                        onBackPressed()
                    }
                }

                // video area
                if (getUIConfig().isStageVisible) {
                    if(fullscreen){

                        agoraClassVideoPresenter = AgoraClassVideoPresenter(binding.agoraClassTeacherVideoFlscreen)
                        binding.agoraLargeWindowContainer.videoPresenter = FCRSmallClassVideoPresenter(
                            binding.agoraAreaVideo, binding.agoraClassTeacherVideoFlscreen,
                            binding.agoraClassUserListVideo, context
                        )
                        agoraClassVideoPresenter?.initView(getRoomType(), this, uiController)
//                        hiddenViewLoading()
                    }else{

                        agoraClassVideoPresenter = AgoraClassVideoPresenter(binding.agoraClassTeacherVideo, binding.agoraClassUserListVideo)
                        binding.agoraLargeWindowContainer.videoPresenter = FCRSmallClassVideoPresenter(
                            binding.agoraAreaVideo, binding.agoraClassTeacherVideo,
                            binding.agoraClassUserListVideo, context
                        )
                        agoraClassVideoPresenter?.initView(getRoomType(), this, uiController)
                        hiddenViewLoading()

                    }


                }

                // white area
                if (getUIConfig().isEngagementVisible) {
                    onChange()
                }




            }
            join()
        }

}

Upvotes: 0

Views: 15

Answers (0)

Related Questions