From 91c63e670466666554e24b114f47d568f6655416 Mon Sep 17 00:00:00 2001 From: cloudwebrtc Date: Mon, 28 Oct 2024 11:26:54 +0800 Subject: [PATCH] update. --- lib/src/context/media_device_context.dart | 6 +++--- pubspec.yaml | 10 ++++++++++ 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/lib/src/context/media_device_context.dart b/lib/src/context/media_device_context.dart index 487fe20..5d90475 100644 --- a/lib/src/context/media_device_context.dart +++ b/lib/src/context/media_device_context.dart @@ -17,7 +17,7 @@ import 'dart:async'; import 'package:flutter/material.dart'; import 'package:flutter_background/flutter_background.dart'; -import 'package:flutter_webrtc/flutter_webrtc.dart' as rtc; +import 'package:flutter_webrtc/flutter_webrtc.dart'; import 'package:livekit_client/livekit_client.dart'; import 'package:provider/provider.dart'; @@ -192,7 +192,7 @@ class MediaDeviceContext extends ChangeNotifier { Future enableScreenShare(context) async { if (lkPlatformIsDesktop()) { try { - final source = await showDialog( + final source = await showDialog( context: context, builder: (context) => ScreenSelectDialog(), ); @@ -215,7 +215,7 @@ class MediaDeviceContext extends ChangeNotifier { } if (lkPlatformIs(PlatformType.android)) { // Android specific - bool hasCapturePermission = await rtc.Helper.requestCapturePermission(); + bool hasCapturePermission = await Helper.requestCapturePermission(); if (!hasCapturePermission) { return; } diff --git a/pubspec.yaml b/pubspec.yaml index 5070f0d..a671b67 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -12,8 +12,10 @@ dependencies: flutter: sdk: flutter flutter_background: ^1.3.0+1 + flutter_webrtc: ^0.12.1+hotfix.1 google_fonts: ^6.2.1 http: ^1.2.2 + intl: ^0.19.0 livekit_client: ^2.3.0 provider: ^6.1.2 responsive_builder: ^0.7.1 @@ -24,6 +26,14 @@ dev_dependencies: flutter_lints: ^4.0.0 import_sorter: ^4.6.0 + +topics: + - webrtc + - ai + - livestream + - conference + - agent + # For information on the generic Dart part of this file, see the # following page: https://dart.dev/tools/pub/pubspec