liuyuqi-dellpc 11 months ago
parent
commit
badf3681e1

+ 1 - 1
lib/components/log_sink.dart

@@ -92,7 +92,7 @@ class _LogActionWidgetState extends State<LogActionWidget> {
                 ),
               );
             });
-            Overlay.of(context)?.insert(_overlayEntry!);
+            Overlay.of(context).insert(_overlayEntry!);
           }
           _isOverlayShowed = !_isOverlayShowed;
           // setState(() {

+ 0 - 169
lib/config/voice_changer.config.dart

@@ -1,169 +0,0 @@
-import 'package:agora_rtc_engine/agora_rtc_engine.dart';
-
-/// VoiceChangeConfig
-const VoiceChangeConfig = [
-  {
-    'alertTitle': 'Set Chat Beautifier',
-    'options': [
-      {'text': 'Off', 'type': VoiceBeautifierPreset.voiceBeautifierOff},
-      {
-        'text': 'FemaleFresh',
-        'type': VoiceBeautifierPreset.chatBeautifierFresh
-      },
-      {
-        'text': 'FemaleVitality',
-        'type': VoiceBeautifierPreset.chatBeautifierVitality,
-      },
-      {
-        'text': 'Vigorous',
-        'type': VoiceBeautifierPreset.chatBeautifierMagnetic
-      },
-    ],
-  },
-  {
-    'alertTitle': 'Set Timbre Transformation',
-    'options': [
-      {'text': 'Off', 'type': VoiceBeautifierPreset.voiceBeautifierOff},
-      {
-        'text': 'Vigorous',
-        'type': VoiceBeautifierPreset.timbreTransformationVigorous,
-      },
-      {'text': 'Deep', 'type': VoiceBeautifierPreset.timbreTransformationDeep},
-      {
-        'text': 'Mellow',
-        'type': VoiceBeautifierPreset.timbreTransformationMellow,
-      },
-      {
-        'text': 'Falsetto',
-        'type': VoiceBeautifierPreset.timbreTransformationFalsetto,
-      },
-      {'text': 'Full', 'type': VoiceBeautifierPreset.timbreTransformationFull},
-      {
-        'text': 'Clear',
-        'type': VoiceBeautifierPreset.timbreTransformationClear
-      },
-      {
-        'text': 'Resounding',
-        'type': VoiceBeautifierPreset.timbreTransformationResounding,
-      },
-      {
-        'text': 'Ringing',
-        'type': VoiceBeautifierPreset.timbreTransformationRinging,
-      },
-    ],
-  },
-  {
-    'alertTitle': 'Set Style Transformation',
-    'options': [
-      {'text': 'Off', 'type': AudioEffectPreset.audioEffectOff},
-      {'text': 'Pop', 'type': AudioEffectPreset.styleTransformationPopular},
-      {'text': 'R&B', 'type': AudioEffectPreset.styleTransformationRnb},
-    ],
-  },
-  {
-    'alertTitle': 'Set Voice Changer',
-    'options': [
-      {'text': 'Off', 'type': AudioEffectPreset.audioEffectOff},
-      {
-        'text': 'FxUncle',
-        'type': AudioEffectPreset.voiceChangerEffectUncle,
-      },
-      {
-        'text': 'Old Man',
-        'type': AudioEffectPreset.voiceChangerEffectOldman,
-      },
-      {
-        'text': 'Baby Boy',
-        'type': AudioEffectPreset.voiceChangerEffectBoy,
-      },
-      {
-        'text': 'FxSister',
-        'type': AudioEffectPreset.voiceChangerEffectSister,
-      },
-      {
-        'text': 'Baby Girl',
-        'type': AudioEffectPreset.voiceChangerEffectGirl,
-      },
-      {
-        'text': 'ZhuBaJie',
-        'type': AudioEffectPreset.voiceChangerEffectPigking,
-      },
-      {'text': 'Hulk', 'type': AudioEffectPreset.voiceChangerEffectHulk},
-    ],
-  },
-  {
-    'alertTitle': 'Set Room Acoustics',
-    'options': [
-      {'text': 'Off', 'type': AudioEffectPreset.audioEffectOff},
-      {'text': 'KTV', 'type': AudioEffectPreset.RoomAcousticsKTV},
-      {'text': 'Concert', 'type': AudioEffectPreset.roomAcousticsVocalConcert},
-      {'text': 'Studio', 'type': AudioEffectPreset.roomAcousticsStudio},
-      {'text': 'Phonograph', 'type': AudioEffectPreset.roomAcousticsPhonograph},
-      {
-        'text': 'Virtual Stereo',
-        'type': AudioEffectPreset.roomAcousticsVirtualStereo,
-      },
-      {'text': 'Spacial', 'type': AudioEffectPreset.roomAcousticsSpacial},
-      {'text': 'Ethereal', 'type': AudioEffectPreset.roomAcousticsEthereal},
-      {
-        'text': '3D Voice',
-        'type': AudioEffectPreset.roomAcoustics3dVoice,
-      },
-    ],
-  },
-  {
-    'alertTitle': 'Set Pitch Correction',
-    'options': [
-      {'text': 'Off', 'type': AudioEffectPreset.audioEffectOff},
-      {'text': 'Pitch Correction', 'type': AudioEffectPreset.pitchCorrection},
-    ],
-  },
-];
-
-/// FreqOptions
-const FreqOptions = [
-  {'text': '31Hz', 'type': AudioEqualizationBandFrequency.Band31},
-  {'text': '62Hz', 'type': AudioEqualizationBandFrequency.Band62},
-  {'text': '125Hz', 'type': AudioEqualizationBandFrequency.Band125},
-  {'text': '250Hz', 'type': AudioEqualizationBandFrequency.Band250},
-  {'text': '500Hz', 'type': AudioEqualizationBandFrequency.Band500},
-  {'text': '1KHz', 'type': AudioEqualizationBandFrequency.Band1K},
-  {'text': '2KHz', 'type': AudioEqualizationBandFrequency.Band2K},
-  {'text': '4KHz', 'type': AudioEqualizationBandFrequency.Band4K},
-  {'text': '8KHz', 'type': AudioEqualizationBandFrequency.Band8K},
-  {'text': '16KHz', 'type': AudioEqualizationBandFrequency.Band16K},
-];
-
-/// ReverbKeyOptions
-const ReverbKeyOptions = [
-  {
-    'text': 'Dry Level',
-    'type': AudioReverbType.DryLevel,
-    'min': -20.0,
-    'max': 10.0
-  },
-  {
-    'text': 'Wet Level',
-    'type': AudioReverbType.WetLevel,
-    'min': -20.0,
-    'max': 10.0
-  },
-  {
-    'text': 'Room Size',
-    'type': AudioReverbType.RoomSize,
-    'min': 0.0,
-    'max': 100.0
-  },
-  {
-    'text': 'Wet Delay',
-    'type': AudioReverbType.WetDelay,
-    'min': 0.0,
-    'max': 200.0
-  },
-  {
-    'text': 'Strength',
-    'type': AudioReverbType.Strength,
-    'min': 0.0,
-    'max': 100.0
-  },
-];

+ 5 - 5
lib/examples/advanced/process_video_raw_data/process_video_raw_data.dart

@@ -4,7 +4,7 @@ import 'package:agora_rtc_engine_example/components/example_actions_widget.dart'
 import 'package:agora_rtc_engine_example/components/log_sink.dart';
 import 'package:flutter/foundation.dart';
 import 'package:flutter/material.dart';
-import 'package:video_raw_data/video_raw_data.dart';
+// import 'package:video_raw_data/video_raw_data.dart';
 
 /// ProcessVideoRawData Example
 /// 
@@ -29,8 +29,8 @@ class _State extends State<ProcessVideoRawData> {
   ChannelProfileType _channelProfileType =
       ChannelProfileType.channelProfileLiveBroadcasting;
 
-  final VideoRawDataController _videoRawDataController =
-      VideoRawDataController();
+  // final VideoRawDataController _videoRawDataController =
+  //     VideoRawDataController();
 
   @override
   void initState() {
@@ -47,7 +47,7 @@ class _State extends State<ProcessVideoRawData> {
   }
 
   Future<void> _dispose() async {
-    _videoRawDataController.dispose();
+    // _videoRawDataController.dispose();
     await _engine.leaveChannel();
     await _engine.release();
   }
@@ -99,7 +99,7 @@ class _State extends State<ProcessVideoRawData> {
 
     final nativeHandle = await _engine.getNativeHandle();
 
-    _videoRawDataController.initialize(nativeHandle);
+    // _videoRawDataController.initialize(nativeHandle);
 
     await _engine.startPreview();
 

+ 2 - 0
macos/Flutter/GeneratedPluginRegistrant.swift

@@ -7,8 +7,10 @@ import Foundation
 
 import agora_rtc_engine
 import iris_method_channel
+import path_provider_foundation
 
 func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) {
   AgoraRtcNgPlugin.register(with: registry.registrar(forPlugin: "AgoraRtcNgPlugin"))
   IrisMethodChannelPlugin.register(with: registry.registrar(forPlugin: "IrisMethodChannelPlugin"))
+  PathProviderPlugin.register(with: registry.registrar(forPlugin: "PathProviderPlugin"))
 }

+ 65 - 1
pubspec.lock

@@ -167,6 +167,54 @@ packages:
       url: "https://pub.flutter-io.cn"
     source: hosted
     version: "1.8.3"
+  path_provider:
+    dependency: "direct main"
+    description:
+      name: path_provider
+      sha256: "3087813781ab814e4157b172f1a11c46be20179fcc9bea043e0fba36bc0acaa2"
+      url: "https://pub.flutter-io.cn"
+    source: hosted
+    version: "2.0.15"
+  path_provider_android:
+    dependency: transitive
+    description:
+      name: path_provider_android
+      sha256: "2cec049d282c7f13c594b4a73976b0b4f2d7a1838a6dd5aaf7bd9719196bee86"
+      url: "https://pub.flutter-io.cn"
+    source: hosted
+    version: "2.0.27"
+  path_provider_foundation:
+    dependency: transitive
+    description:
+      name: path_provider_foundation
+      sha256: "1995d88ec2948dac43edf8fe58eb434d35d22a2940ecee1a9fefcd62beee6eb3"
+      url: "https://pub.flutter-io.cn"
+    source: hosted
+    version: "2.2.3"
+  path_provider_linux:
+    dependency: transitive
+    description:
+      name: path_provider_linux
+      sha256: ffbb8cc9ed2c9ec0e4b7a541e56fd79b138e8f47d2fb86815f15358a349b3b57
+      url: "https://pub.flutter-io.cn"
+    source: hosted
+    version: "2.1.11"
+  path_provider_platform_interface:
+    dependency: transitive
+    description:
+      name: path_provider_platform_interface
+      sha256: "57585299a729335f1298b43245842678cb9f43a6310351b18fb577d6e33165ec"
+      url: "https://pub.flutter-io.cn"
+    source: hosted
+    version: "2.0.6"
+  path_provider_windows:
+    dependency: transitive
+    description:
+      name: path_provider_windows
+      sha256: d3f80b32e83ec208ac95253e0cd4d298e104fbc63cb29c5c69edaed43b0c69d6
+      url: "https://pub.flutter-io.cn"
+    source: hosted
+    version: "2.1.6"
   permission_handler:
     dependency: "direct main"
     description:
@@ -316,6 +364,22 @@ packages:
       url: "https://pub.flutter-io.cn"
     source: hosted
     version: "3.0.2"
+  win32:
+    dependency: transitive
+    description:
+      name: win32
+      sha256: "5a751eddf9db89b3e5f9d50c20ab8612296e4e8db69009788d6c8b060a84191c"
+      url: "https://pub.flutter-io.cn"
+    source: hosted
+    version: "4.1.4"
+  xdg_directories:
+    dependency: transitive
+    description:
+      name: xdg_directories
+      sha256: ee1505df1426458f7f60aac270645098d318a8b4766d85fde75f76f2e21807d1
+      url: "https://pub.flutter-io.cn"
+    source: hosted
+    version: "1.0.0"
 sdks:
   dart: ">=3.0.0-0 <4.0.0"
-  flutter: ">=2.8.0"
+  flutter: ">=3.3.0"

+ 7 - 6
pubspec.yaml

@@ -11,13 +11,14 @@ dependencies:
   agora_rtc_engine: ^6.2.0
   cupertino_icons: ^1.0.2
   permission_handler: ^10.2.0
-  path_provider: ^2.0.8
+  path_provider: ^2.0.11
+
+  # video_raw_data:
+  #   git:
+  #     url: https://github.com/AgoraIO-Extensions/RawDataPluginSample.git
+  #     path: frameworks/flutter/video_raw_data
+  #     ref: c1e6426a2aa4381b23e4633a6ef4a9b3b075fa1f
 
-  video_raw_data:
-    git:
-      url: https://github.com/AgoraIO-Extensions/RawDataPluginSample.git
-      path: frameworks/flutter/video_raw_data
-      ref: c1e6426a2aa4381b23e4633a6ef4a9b3b075fa1f
 dev_dependencies:
   integration_test:
     sdk: flutter