I am experiencing issues with playing downloaded content in offline mode. Here is the situation:
- I download a video and successfully receive the callback confirming that the content has been downloaded.
- To launch playback, I retrieve the
SourceConfig
as follows:
offlineContentManager.sourceConfig
- In this case, playback works correctly if there is a network connection.
- However, when I turn off the internet, I receive the following error:
Manifest request failed. The internet connection appears to be offline.
- I also found another method in the documentation to retrieve the
SourceConfig
:
offlineContentManager.createOfflineSourceConfig(restrictedToAssetCache: true)
- When I use this method, I receive the following error regardless of whether there is a network connection or not:
Source Error.
Question:
How can I ensure that downloaded content plays correctly in offline mode? Are there any additional steps or configurations I might be missing?
Thank you in advance for your assistance!