refactor: M2-Call-Pilot – Module call_signaling + voice_channel mit Fassaden (Entscheidung 2)
- CallSignalingService/callSignalingProvider und VoiceChannelService/ voiceChannelProvider als einzige oeffentliche Schnittstellen - voip_manager.dart / livekit_call_manager.dart in ihre Module verschoben, Logik unangetastet (nur Klassen-Koepfe, @override, Imports, Provider-Namen) - Alle Konsumenten entkoppelt; Kompositions-Punkt matrix_client.dart als dokumentierte Ausnahme. analyze sauber, 29 Tests gruen, Windows-Start ok. Call-Klick-/Geraetetest steht aus (PROGRESS.md)
This commit is contained in:
@@ -1,14 +1,14 @@
|
||||
part of '../settings_modal.dart';
|
||||
|
||||
class _VoiceSection extends StatefulWidget {
|
||||
class _VoiceSection extends ConsumerStatefulWidget {
|
||||
final PyramidTheme pt;
|
||||
const _VoiceSection({required this.pt});
|
||||
|
||||
@override
|
||||
State<_VoiceSection> createState() => _VoiceSectionState();
|
||||
ConsumerState<_VoiceSection> createState() => _VoiceSectionState();
|
||||
}
|
||||
|
||||
class _VoiceSectionState extends State<_VoiceSection> {
|
||||
class _VoiceSectionState extends ConsumerState<_VoiceSection> {
|
||||
List<MediaDeviceInfo> _audioInputs = [];
|
||||
List<MediaDeviceInfo> _audioOutputs = [];
|
||||
List<MediaDeviceInfo> _videoInputs = [];
|
||||
@@ -89,10 +89,10 @@ class _VoiceSectionState extends State<_VoiceSection> {
|
||||
setState(() => _outputVolume = v);
|
||||
final prefs = await SharedPreferences.getInstance();
|
||||
await prefs.setDouble(_kOutputVolume, v);
|
||||
// Live auf laufende Calls anwenden.
|
||||
LiveKitCallManager.instance.setOutputVolume(v).catchError((_) {});
|
||||
// Live auf laufende Calls anwenden (über die Modul-Fassaden).
|
||||
ref.read(voiceChannelProvider).setOutputVolume(v).catchError((_) {});
|
||||
try {
|
||||
PyramidVoipManager.instance.applyOutputVolume(v).catchError((_) {});
|
||||
ref.read(callSignalingProvider).applyOutputVolume(v).catchError((_) {});
|
||||
} catch (_) {} // Instanz existiert evtl. noch nicht
|
||||
}
|
||||
|
||||
|
||||
@@ -24,9 +24,9 @@ import 'package:pyramid/core/app_state.dart';
|
||||
import 'package:pyramid/core/auth_log.dart';
|
||||
import 'package:pyramid/core/e2ee_diagnostics.dart';
|
||||
import 'package:pyramid/features/auth/bootstrap_dialog.dart' show isKeyBackupMissing;
|
||||
import 'package:pyramid/core/livekit_call_manager.dart';
|
||||
import 'package:pyramid/features/call_signaling/call_signaling_service.dart';
|
||||
import 'package:pyramid/features/voice_channel/voice_channel_service.dart';
|
||||
import 'package:pyramid/core/matrix_client.dart';
|
||||
import 'package:pyramid/core/voip_manager.dart';
|
||||
import 'package:pyramid/core/settings_prefs.dart';
|
||||
import 'package:pyramid/core/theme.dart';
|
||||
import 'package:pyramid/core/update_checker.dart';
|
||||
|
||||
Reference in New Issue
Block a user