ap4y/OrigamiEngine

Doesn't work in background mode

gerchicov-bp opened this issue · 5 comments

It means that when screen is switched off the playback is paused

speak Russian? i know how to fix this moment

?
the only solution I found is to use AVAudioSessionCategoryPlayAndRecord but it is strange and may cause bugs

i simply turned ON Background Modes in Capabilities, There is a switch, and then you have checkboxes for different things one of them is Audio

Even after setting the AVAudioSessionCategoryPlayAndRecord I still get an error when playing audio from an http source. It keeps hanging on data = [_fileHandle readDataOfLength:amount]; (line 138) in the HTTPSource.m file. Any suggestions?