Keeping audio running when app goes into background

Home Forums OpenEars Keeping audio running when app goes into background

Viewing 9 posts - 1 through 9 (of 9 total)

  • Author
    Posts
  • #10991
    ameetnsharma
    Participant

    Hi. I’m trying to keep flite speaking when the app goes into the background. Right now the audio stops. In my info.plist, I’ve included audio as one of the required background modes.

    Is there anything else I need to do?

    Thanks.

    #10992
    Halle Winkler
    Politepix

    This is the only information I have on the subject:
    https://www.politepix.com/forums/topic/flite-in-background/

    #10993
    ameetnsharma
    Participant

    Thanks for the quick response! Appreciate it!

    #10994
    ameetnsharma
    Participant

    Hmmm… in that thread, you mentioned keeping the current audio stream running, even if you can’t initiate a new stream. In my app, the current audio stream stops quickly after hitting the home button. Is there a way to allow the current stream to continue?

    #10995
    Halle Winkler
    Politepix

    I’m surprised to hear that it’s possible and in the thread it’s actually the other developer who has a method, so I can’t really help with implementing his approach unfortunately.

    #10996
    ameetnsharma
    Participant

    No prob. Thanks again. I’ll try experimenting with it.

    #10997
    Halle Winkler
    Politepix

    OK, good luck!

    #10998
    ameetnsharma
    Participant

    Just to update, I got it working. The reason it wasn’t working before was that I was editing the wrong info.plist (i was accidentally editing the test-info.plist file instead).

    Setting audio as one of the required background modes looks like all that needs to be done. very nice.

    #10999
    Halle Winkler
    Politepix

    Awesome, good to have the confirmation.

Viewing 9 posts - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.