try to play

This commit is contained in:
Daniel 2024-08-14 08:33:11 -04:00
parent 5a8e7c7690
commit c411a007e6

View file

@ -7,8 +7,6 @@ class Player {
final player = AudioPlayer();
Player();
Future<void> play(Call call) {
print('play!');
return Future.delayed(const Duration(seconds: 1));
// return player.play(BytesSource(Uint8List.fromList(call.audio)));
return player.play(BytesSource(Uint8List.fromList(call.audio)));
}
}