Use SoundEffect instead of MediaPlayer, so that media playback doesn't pause
This commit is contained in:
parent
51f2542d80
commit
8d9516a494
1 changed files with 3 additions and 6 deletions
|
@ -36,19 +36,16 @@ Page {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
MediaPlayer {
|
SoundEffect {
|
||||||
id: alertLow
|
id: alertLow
|
||||||
audioRole: MediaPlayer.NotificationRole
|
|
||||||
volume: 0.6
|
volume: 0.6
|
||||||
autoLoad: true
|
|
||||||
source: settings.lowAlertFile
|
source: settings.lowAlertFile
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
MediaPlayer {
|
SoundEffect {
|
||||||
id: alertHigh
|
id: alertHigh
|
||||||
audioRole: MediaPlayer.NotificationRole
|
|
||||||
volume: 0.6
|
volume: 0.6
|
||||||
autoLoad: true
|
|
||||||
source: settings.highAlertFile
|
source: settings.highAlertFile
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue