The purpose of this app is to demonstrate how OptiView Player (formerly THEOplayer) can be used to download protected and unprotected content for offline playback.
For quick start, please proceed with the Quick Start guide and make sure to run the app on a real device because offline playback is not supported in simulators.
The guides below will provide a detailed explanation about caching stream for offline playback using OptiView Player Cache API.
- [OptiView Player How To's - Offline Stream Caching]
This app is an extension of the Basic Playback sample. Please checkout the following guides should any help is needed to get started with Xcode and/or OptiView Player SDK.
- [OptiView Knowledge Base - Xcode Setup]
- [OptiView How To's - Setup Reference Application]
- [OptiView How To's - OptiView Player iOS SDK Integration]
-
Navigate to your Xcode project and switch to the Package Dependencies tab. Click on the + button to add a new SPM package and enter in the search bar the URL of the following repo: https://github.com/THEOplayer/theoplayer-sdk-apple.
-
Add the
THEOplayerSDKto your project. -
In the player configuration, replace the placeholder
your_license_herewith your license for iOS SDK.let playerConfigurationBuilder = THEOplayerConfigurationBuilder() playerConfigurationBuilder.license = "your_license_string" self.theoplayer = THEOplayer(configuration: playerConfigurationBuilder.build())
If you don't have a license yet, please visit THEOportal Getting Started page.
-
Open the project
.xcodeproj, select a Development Team for signing and build it.
The DRM streams used in this app (if any) are provided by our partner castLabs who hold all the rights for the content. These streams are DRM protected and cannot be used for any other purposes.
This project is licensed under the BSD 3 Clause License - see the LICENSE file for details.