This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
await loginRoom(); | |
startListenEvent(); | |
if (widget.isVideo && widget.isHost) { | |
// start recording the screen | |
screenRecordUtils = ZegoScreenRecordUtils(); | |
await screenRecordUtils!.startScreenShare( | |
widget.roomId, | |
widget.user.id, | |
); | |
// ZegoExpressEngine.instance.enableCamera(widget.isVideo); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Generated by pub | |
# See https://dart.dev/tools/pub/glossary#lockfile | |
packages: | |
_fe_analyzer_shared: | |
dependency: transitive | |
description: | |
name: _fe_analyzer_shared | |
sha256: "4897882604d919befd350648c7f91926a9d5de99e67b455bf0917cc2362f4bb8" | |
url: "https://pub.dev" | |
source: hosted |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'dart:async'; | |
import 'dart:io'; | |
import 'package:flutter/cupertino.dart'; | |
import 'package:flutter/material.dart'; | |
import 'package:flutter/scheduler.dart'; | |
import 'package:flutter/services.dart'; | |
import 'package:flutter/widgets.dart'; | |
import 'package:flutter_screenutil/flutter_screenutil.dart'; | |
import 'package:flutter_bloc/flutter_bloc.dart'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void startListenEvent() { | |
// Callback for updates on the status of other users in the room. | |
// Users can only receive callbacks when the isUserStatusNotify property of ZegoRoomConfig is set to `true` when logging in to the room (loginRoom). | |
ZegoExpressEngine.onRoomUserUpdate = | |
(roomID, updateType, List<ZegoUser> userList) {}; | |
// Callback for updates on the status of the streams in the room. | |
ZegoExpressEngine.onRoomStreamUpdate = | |
(roomID, updateType, List<ZegoStream> streamList, extendedData) { | |
if (updateType == ZegoUpdateType.Add) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import 'dart:async'; | |
import 'dart:io'; | |
import 'package:flutter/cupertino.dart'; | |
import 'package:flutter/material.dart'; | |
import 'package:flutter/scheduler.dart'; | |
import 'package:flutter/services.dart'; | |
import 'package:flutter/widgets.dart'; | |
import 'package:flutter_screenutil/flutter_screenutil.dart'; | |
import 'package:flutter_bloc/flutter_bloc.dart'; |