Open dave3vans opened 4 years ago
any solution here ? I am facing same issue..
did you enable background mode -> audio on xcode capabilities?
Hi @21pg
It's works for me:
On xCode check Signing & Capabilities -> Background Modes
you have to enable the option Audio, AirPlay, and Picture in Picture
Anybody find a solution to this? Updating Capabilities in XCode doesn't help.
Bug Report
Problem
If I stream a large (40mb, 1 hour AAC) file from a URL, then put the device into sleep mode, it stops playback after around 20 seconds, with 'Stalled Playback' message.
What is expected to happen?
Should continue to play. Playing smaller files (e.g. 20MB. 30 minute AAC) works fine.
What does actually happen?
See above.
Information
I have
playAudioWhenScreenIsLocked
set to true, and also in plist fileUIBackgroundModes
set toaudio
andfetch
, as well asUIRequiresPersistentWiFi
set to true.iOS is closing the network connection, but I thought with
UIRequiresPersistentWiFi
it shouldn't?Command or Code
this.mediaObject.play({ playAudioWhenScreenIsLocked: true });
Environment, Platform, Device
Test device: iPhone 7, iOS 13.5.1
Version information
Checklist