Skip to content

Commit

Permalink
update.
Browse files Browse the repository at this point in the history
  • Loading branch information
cloudwebrtc committed Oct 28, 2024
1 parent 3c4ed41 commit 91c63e6
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/src/context/media_device_context.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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';

Expand Down Expand Up @@ -192,7 +192,7 @@ class MediaDeviceContext extends ChangeNotifier {
Future<void> enableScreenShare(context) async {
if (lkPlatformIsDesktop()) {
try {
final source = await showDialog<rtc.DesktopCapturerSource>(
final source = await showDialog<DesktopCapturerSource>(
context: context,
builder: (context) => ScreenSelectDialog(),
);
Expand All @@ -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;
}
Expand Down
10 changes: 10 additions & 0 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

Expand Down

0 comments on commit 91c63e6

Please sign in to comment.