build: Update dependencies
This commit is contained in:
parent
0d9cb4915d
commit
3f46b90fd8
4 changed files with 70 additions and 73 deletions
|
|
@ -16,9 +16,11 @@ class UserMediaManager {
|
|||
|
||||
AudioPlayer? _assetsAudioPlayer;
|
||||
|
||||
final FlutterRingtonePlayer _flutterRingtonePlayer = FlutterRingtonePlayer();
|
||||
|
||||
Future<void> startRingingTone() async {
|
||||
if (PlatformInfos.isMobile) {
|
||||
await FlutterRingtonePlayer.playRingtone(volume: 80);
|
||||
await _flutterRingtonePlayer.playRingtone(volume: 80);
|
||||
} else if ((kIsWeb || PlatformInfos.isMacOS) &&
|
||||
_assetsAudioPlayer != null) {
|
||||
const path = 'assets/sounds/phone.ogg';
|
||||
|
|
@ -31,7 +33,7 @@ class UserMediaManager {
|
|||
|
||||
Future<void> stopRingingTone() async {
|
||||
if (PlatformInfos.isMobile) {
|
||||
await FlutterRingtonePlayer.stop();
|
||||
await _flutterRingtonePlayer.stop();
|
||||
}
|
||||
await _assetsAudioPlayer?.stop();
|
||||
_assetsAudioPlayer = null;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue