You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
868 B
Dart
33 lines
868 B
Dart
// lib/services/zoom_service.dart
|
|
// import 'package:flutter_zoom_videosdk/native/zoom_videosdk.dart';
|
|
|
|
class ZoomService {
|
|
static final ZoomService _instance = ZoomService._internal();
|
|
factory ZoomService() => _instance;
|
|
ZoomService._internal();
|
|
|
|
// ZoomVideoSdk? _zoom;
|
|
bool _isInitialized = false;
|
|
|
|
Future<void> initializeZoomSDK() async {
|
|
if (_isInitialized) return;
|
|
|
|
try {
|
|
// _zoom = ZoomVideoSdk();
|
|
// InitConfig initConfig = InitConfig(
|
|
// domain: "zoom.us",
|
|
// enableLog: true, // Enable for debugging
|
|
// );
|
|
|
|
// await _zoom!.initSdk(initConfig);
|
|
_isInitialized = true;
|
|
print("Zoom SDK initialized successfully");
|
|
} catch (e) {
|
|
print("Error initializing Zoom SDK: $e");
|
|
rethrow;
|
|
}
|
|
}
|
|
|
|
// ZoomVideoSdk? get zoom => _zoom;
|
|
bool get isInitialized => _isInitialized;
|
|
} |