calls/lib/views/audio_mediakit.dart

12 lines
295 B
Dart
Raw Normal View History

2024-10-14 11:42:48 -04:00
import 'package:just_audio/just_audio.dart' as justaudio;
2024-08-17 22:12:49 -04:00
import 'package:just_audio_media_kit/just_audio_media_kit.dart';
class AudioInitializer {
2024-10-14 11:42:48 -04:00
late justaudio.AudioPlayer player;
2024-08-17 22:12:49 -04:00
void audioInit() {
JustAudioMediaKit.ensureInitialized();
2024-10-14 11:42:48 -04:00
player = justaudio.AudioPlayer();
2024-08-17 22:12:49 -04:00
}
}