playRecording method

Future<void> playRecording(
  1. String filePath
)

Implementation

Future<void> playRecording(String filePath) async {
  if (_audioPlayer == null) {
    throw Exception('RecordingManager not initialized');
  }

  final file = File(filePath);
  if (!file.existsSync()) {
    throw Exception('Recording file not found: $filePath');
  }

  await _audioPlayer!.play(DeviceFileSource(filePath));
}