updateMoreList method
Implementation
Future<void> updateMoreList(MoreModel model) async {
if (model.tag == MenuOption.recording) {
startRecording();
} else if (model.tag == MenuOption.switchAT) {
switchAtView();
} else if (model.tag == MenuOption.muteRoom) {
muteRoom();
} else if (model.tag == MenuOption.lobby) {
Future.delayed(const Duration(milliseconds: 500), () {
showRequestDialog(context, this);
});
} else if (model.tag == MenuOption.roomSetting) {
Future.delayed(const Duration(milliseconds: 500), () {
showRoomSettingDialog(context, this);
});
} else if (model.tag == MenuOption.requestFloor) {
Future.delayed(const Duration(milliseconds: 500), () {
shareRequestDialog(context, this);
});
} else if (model.tag == MenuOption.polling) {
onPageSlide(EnxPageSlideEventName.enxPolling, true);
Future.delayed(const Duration(milliseconds: 500), () {
//showPollingResultDialog(context,this);
showPollingViewDialog(context, this);
});
//Get.to(() => PollingScreen(this));
} else if (model.tag == MenuOption.qna) {
onPageSlide(EnxPageSlideEventName.enxQna, true);
}else if(model.tag==MenuOption.liveStreaming){
if(model.name=="Start Live Streaming"){
if(EnxSetting.instance.isRTMPStartAfterJoin){
if(EnxSetting.instance.liveStreamInfo.isNotEmpty){
startLiveStream();
}else{
Future.delayed(const Duration(milliseconds: 500), () {
liveStreamingUi(context,this);
});
}
}else{
Future.delayed(const Duration(milliseconds: 500), () {
liveStreamingUi(context,this);
});
}
}else{
stopLiveStream();
}
}
/*
else if (model.tag == MenuOption.annotationShare) {
if( model.name=='Start Annotation'){
isLongPress.value=true;
showToastMessageLong('Please long press on player,On which you want to start Annotation');
}else{
annotationShare();
}
// annotationShare();
// showAlert(context);
}
*/
update();
}