My company is build an iOS app and a key feature we need to implement is the ability to listen to call recordings when the device is locked. The use case is this:
- In our app, find a meeting with a recording
- Tap a button to go to said recording
- The app launches a SFSafariViewController which loads a WebEx webpage where the audio (and video, if applicable) recording can be played
- The user taps the play button and the recording begins to play
- The problem is - and it's a big problem - if our app is put in the background or the device locks, the audio stops playing (This is bad)
Because the recording is embedded in a webpage, there aren't any hooks available to control playback and make it play when the app is backgrounded or the device locks.
I thought I could create a simple, custom AVPlayer that streams the .mp4 file and then it would be quite easy to force continued playback if the app is backgrounded or the device locks. However, a URL to the actual file doesn't seem to be available.
Is there any way around this limitation?
Thanks!