** Summary changed: - 'loops: Audio.Infinite' and 'loops: MediaPlayer.Infinite' only plays once if phone suspends + 'loops: Audio.Infinite' and 'loops: MediaPlayer.Infinite' stops playing if phone suspends
** Description changed: I'm using the following: Audio { id: playAudio autoLoad: true autoPlay: true loops: Audio.Infinite source: "./file.mp3" } and the file plays fine and will loop. However, if the phone suspends (either by pressing the power button or letting it suspend on its own), however the file won't loop until the phone is unsuspended and the application brought to the foreground. I also tried: MediaPlayer { id: playAudio autoLoad: true autoPlay: true loops: MediaPlayer.Infinite source: "./file.mp3" } but same problem. Watching the log output from ~/cache/upstart/... I can see that when the file finishes, a status change is sent, but when the phone suspends, it stops sending status changes. I tried looking at onStatusChanged, like this: MediaPlayer { id: playAudio autoLoad: true autoPlay: true loops: MediaPlayer.Infinite source: "./file.mp3" onStatusChanged: { console.log("status changed: " + status) if (status === MediaPlayer.EndOfMedia) { seek(0) play() } } } - but it didn't seem to work. + but it didn't seem to work. Also, setting 'loops' to a number, eg, + 'loops: 10' doesn't work either (it stops once the phone suspends). Looping is essential for the app I am writing (a white noise relaxation/sleep aid app). ** Summary changed: - 'loops: Audio.Infinite' and 'loops: MediaPlayer.Infinite' stops playing if phone suspends + 'loops: Audio.Infinite' and 'loops: MediaPlayer.Infinite' stops playing if phone suspends or app goes to the background -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1389477 Title: 'loops: Audio.Infinite' and 'loops: MediaPlayer.Infinite' stops playing if phone suspends or app goes to the background To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/media-hub/+bug/1389477/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs