I'm having a annoying issue with background music for my game which involves the music stopping when a user leaves the iOS app. The music will not resume in most cases when returning back to the app. (Using the home button, then going to another app, then returning creates this result)
I've tried every method of playing mp3 background music that I know of:
-Using Kismet's Play Music Track
-Using "mobile PlaySong" console command
-Using the "UpdateMusicTrack" function.
It all creates the same results.
While the control of playing mp3's is limited with UDK (since its iOS's own special hardware handling it) I think it would be much more easier to find a way to detect when the User returns to the app. That way when that occurs, I can simply play the music track again. Not the most elegant solution, but better than its current state.
Btw, Ive tried using a Timer to play the music every few seconds to see what would happen when a user returns.
It still yields the same results of silence. This occurs When using "mobile PlaySong"/"Kismet".
However, when using "mobile PlaySong" it will loop the song every few seconds even after returning. This is important, because if I could find when the user returns to the app I can simply play a silence.mp3 then play the correct level track again.
So far I've tried to use the following to detect when a user leaves/returns to an app:
"event ClearPause()" in game info.
and
"OnLostFocusPause()" in hud.
None of these events are fired at all when returning to app in iOS. I can't seem to see any obvious kismet solutions either, though of course I welcome a kismet solution.
Im using the latest Feb 2015 UDK (Since apple has new requirements I'm forced to use this, the previous UDK did not have this problem with background music)
and Im using an iPad2 with the latest firmware (I think it's 9.1)
I'm aware i've posted similar questions in other sections of the epicgames forums. But this post presents the entire problem and everything Ive tried so i'm sorry if it appears as spam.
I've tried every method of playing mp3 background music that I know of:
-Using Kismet's Play Music Track
-Using "mobile PlaySong" console command
-Using the "UpdateMusicTrack" function.
It all creates the same results.
While the control of playing mp3's is limited with UDK (since its iOS's own special hardware handling it) I think it would be much more easier to find a way to detect when the User returns to the app. That way when that occurs, I can simply play the music track again. Not the most elegant solution, but better than its current state.
Btw, Ive tried using a Timer to play the music every few seconds to see what would happen when a user returns.
It still yields the same results of silence. This occurs When using "mobile PlaySong"/"Kismet".
However, when using "mobile PlaySong" it will loop the song every few seconds even after returning. This is important, because if I could find when the user returns to the app I can simply play a silence.mp3 then play the correct level track again.
So far I've tried to use the following to detect when a user leaves/returns to an app:
"event ClearPause()" in game info.
and
"OnLostFocusPause()" in hud.
None of these events are fired at all when returning to app in iOS. I can't seem to see any obvious kismet solutions either, though of course I welcome a kismet solution.
Im using the latest Feb 2015 UDK (Since apple has new requirements I'm forced to use this, the previous UDK did not have this problem with background music)
and Im using an iPad2 with the latest firmware (I think it's 9.1)
I'm aware i've posted similar questions in other sections of the epicgames forums. But this post presents the entire problem and everything Ive tried so i'm sorry if it appears as spam.
Comment