|
|
|
|
@ -15,6 +15,7 @@ import 'package:flutter_zoom_videosdk/native/zoom_videosdk_event_listener.dart';
|
|
|
|
|
import 'package:flutter_zoom_videosdk/native/zoom_videosdk_live_transcription_message_info.dart';
|
|
|
|
|
import 'package:flutter_zoom_videosdk/native/zoom_videosdk_user.dart';
|
|
|
|
|
import 'package:google_fonts/google_fonts.dart';
|
|
|
|
|
import 'package:wakelock_plus/wakelock_plus.dart';
|
|
|
|
|
|
|
|
|
|
// import '../components/video_view.dart';
|
|
|
|
|
// import '../components/comment_list.dart';
|
|
|
|
|
@ -76,6 +77,7 @@ class _CallScreenState extends State<CallScreen> {
|
|
|
|
|
|
|
|
|
|
useEffect(() {
|
|
|
|
|
Future<void>.microtask(() async {
|
|
|
|
|
WakelockPlus.enable();
|
|
|
|
|
var token = generateJwt(args.sessionName, args.role);
|
|
|
|
|
try {
|
|
|
|
|
Map<String, bool> SDKaudioOptions = {"connect": true, "mute": false, "autoAdjustSpeakerVolume": false};
|
|
|
|
|
@ -170,6 +172,7 @@ class _CallScreenState extends State<CallScreen> {
|
|
|
|
|
fullScreenUser.value = null;
|
|
|
|
|
await zoom.leaveSession(false);
|
|
|
|
|
Navigator.pop(context);
|
|
|
|
|
WakelockPlus.disable();
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
final sessionNeedPasswordListener = emitter.on(EventType.onSessionNeedPassword, (data) async {
|
|
|
|
|
@ -472,8 +475,7 @@ class _CallScreenState extends State<CallScreen> {
|
|
|
|
|
],
|
|
|
|
|
),
|
|
|
|
|
);
|
|
|
|
|
if (errorType == Errors.SessionJoinFailed ||
|
|
|
|
|
errorType == Errors.SessionDisconnecting) {
|
|
|
|
|
if (errorType == Errors.SessionJoinFailed || errorType == Errors.SessionDisconnecting) {
|
|
|
|
|
Timer(
|
|
|
|
|
const Duration(milliseconds: 1000),
|
|
|
|
|
() => Navigator.pop(context),
|
|
|
|
|
@ -1157,6 +1159,7 @@ class _CallScreenState extends State<CallScreen> {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void onLeaveSession(bool isEndSession) async {
|
|
|
|
|
WakelockPlus.disable();
|
|
|
|
|
await zoom.leaveSession(isEndSession);
|
|
|
|
|
Navigator.pop(context);
|
|
|
|
|
// Navigator.pop(context);
|
|
|
|
|
|