mirror of
https://github.com/amigan/calls.git
synced 2024-11-21 12:29:47 -05:00
try to play
This commit is contained in:
parent
5a8e7c7690
commit
c411a007e6
1 changed files with 1 additions and 3 deletions
|
@ -7,8 +7,6 @@ class Player {
|
||||||
final player = AudioPlayer();
|
final player = AudioPlayer();
|
||||||
Player();
|
Player();
|
||||||
Future<void> play(Call call) {
|
Future<void> play(Call call) {
|
||||||
print('play!');
|
return player.play(BytesSource(Uint8List.fromList(call.audio)));
|
||||||
return Future.delayed(const Duration(seconds: 1));
|
|
||||||
// return player.play(BytesSource(Uint8List.fromList(call.audio)));
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue