Doesn't work in background mode
gerchicov-bp opened this issue · 5 comments
gerchicov-bp commented
It means that when screen is switched off the playback is paused
diukar commented
speak Russian? i know how to fix this moment
gerchicov-bp commented
yes
gerchicov-bp commented
?
the only solution I found is to use AVAudioSessionCategoryPlayAndRecord but it is strange and may cause bugs
diukar commented
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
Kfeavel commented
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?