This guide enables you to demonstrate CONNECT Player features and view the example code.
Example code is provided for iOS only.
Prerequisites
Make sure you have the latest version of Xcode installed.
Download the iOS SDK, which supplies all the files needed to launch the player and start streaming content.
opy-sdk-ios-fps-5.11.x-example-code.zip This file contains application projects that demonstrate how to use simple and advanced features, such as playing clear and encrypted streams.
opy-sdk-ios-fps-5.11.x-integration.zip This contains the SDK framework files.
opy-sdk-ios-fps-5.11.x-xcframework-integration.zip This contains the SDK xcframework file.
You also need a device running iOS 12 or above.
Procedure
Save the SDK pack to your development machine and unzip it. The extracted package contains a zipped set of example code; extract the contents of the example-code.zip file to a suitable location.
Copy the SDK framework & xcframework folder into the example-code folder.
Start Xcode, and then select the required project from the extracted package; see the example projects below.
Connect an Apple device to your machine, and build and run the application.
Click here to see the example projects available.
Playback
basic-playback
Demonstrates playback of a clear HLS stream with no additional functionality.
basic-playback-xcframework
Demonstrates playback of a clear HLS stream with no additional functionality using SDK xcframework.
Playback of clear HLS streams with Google IMA adverts. Pod install is required to generate the XCode workspace; see the README.md file for additional steps.
Demonstrates use of OTVOutputDeviceMonitor and the monitoring of external connections and disconnections.
Features in the above example code (except objective-c support and yospace-controlbar) are also integrated as part of UnifiedExampleCode using SwiftUI which can run on iOS and tvOS device running version 16 and above.
For full details on integrating the SDK with your application, see the Apple (FPS) SDK 5 Integration Guide. See also the API reference guide provided in the iOS SDK pack.
JavaScript errors detected
Please note, these errors can depend on your browser setup.
If this problem persists, please contact our support.