Quantcast
Channel: Adobe Community : Unanswered Discussions - AIR Development
Viewing all articles
Browse latest Browse all 2010

Sound & SoundChannel issue when screen is off

$
0
0

Platform: AIR 3.8 on Andorid

 

Classes: Sound & SoundChannel

 

Background: I am writing an app that play songs one after another. I am listening to the soundComplete event of the SoundChannel instance. When the current song is finished, a new Sound object will be created, the Sound will then load an URL and play next song. It worked well when the app is activated.

 

Issue:  When the app is minimized or if the screen is off, the next song will not be played. I have to either switch back to the app or turn on the screen, then the next song will be played automatically again. I am not sure if it is because the soundComplete event of the SoundChannel object is not firing when the screen is off, or if it is because the Sound object does not start loading when screen is off.


Viewing all articles
Browse latest Browse all 2010

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>