Reputation: 1
**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