Skip to main content
Skip table of contents

Apple (FPS) SDK 5 Example Code Quick Start

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.9.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.9.x-integration.zip
    This contains the SDK framework files.

  • opy-sdk-ios-fps-5.9.x-xcframework-integration.zip
    This contains the SDK xcframework file.

You also need a device running iOS 12 or above.

Procedure

  1. 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.

  2. Copy the SDK framework & xcframework folder into the example-code folder.

  3. Start Xcode, and then select the required project from the extracted package; see the example projects below.

  4. Connect an Apple device to your machine, and build and run the application.
Click here to see the example projects available.
Playbackbasic-playbackDemonstrates playback of a clear HLS stream with no additional functionality.
basic-playback-xcframeworkDemonstrates playback of a clear HLS stream with no additional functionality using SDK xcframework.
low-latencyPlayback of low-latency HLS streams.
container-viewManages the view hierarchy for standard playback.
resolution-cappingPlayback of clear HLS streams with resolution capping.
objective-c supportCode development using Objective-C.
thumbnail-seeking-webvttPlayback of clear HLS streams with webvtt thumbnail previews.
thumbnail-seeking-iframePlayback of clear HLS streams with iFrame thumbnail previews.
track-selectionPlayback of clear HLS streams with multiple audio tracks and subtitles.
Encrypted playbackencrypted-playback-simpleIntegration using a convenient delegate to support Playback of FPS encrypted content.
encrypted-playback-advancedIntegration using low-level license delegate to support Playback of FPS encrypted content.
encrypted-playback-prmIntegration using a convenient delegate to support Playback of PRM encrypted content.
customer-ssmProvides a solution for customers to handle SSM.
Offline playbackoffline-playback Offline playback of clear and encrypted HLS streams.
offline-encryptedDownloads an encrypted HLS stream while requesting a licence and then plays offline content.
offline-license-predeliveredPrefetches the licence before downloading an encrypted HLS stream and playing offline content.
offline-license-renewalDownloads an encrypted HLS stream, obtains the licence, plays the offline content and Renews the licence when a licence expiry error is received.
minimumbitrate-for-offlineSelect the minimum bitrate to download for offline playback.
minimumresolution-for-offlineSelect the minimum resolution to download for offline playback. (Only available for iOS 14 and above).
offline-prepare-downloadSelect the download stream before downloading starts.
drm-token-passingParse the SSP DRM stream token to get the licence duration and set it to offline content. 
Content securityquickmark-pull-modeDemonstrates QuickMark forensic watermarking in pull mode.
quickmark-push-modeDemonstrates QuickMark forensic watermarking in push mode.
Advertisingdynamic-ads-imaPlayback 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.
serverside-ad-insertionDemonstrates use of adverts within streams with Server-Side Ad Insertion.
yospace-controlbarDemonstrates the integration of the Yospace user interface handling of streams with Server-Side Ad Insertion.
Diagnostics and statisticsevent-timelinePlayback of clear HLS streams with feedback and analysis of performance tracking or playback issues.
network-statisticsDemonstrates use of statistics API to get network statistics information.
insight-agent-wrapperSends playback metrics and statistics to an Insight analytics server.
Log-ProductionEnables logging in production builds.
Advanced featuresmulti-instanceProvides multiple instances of the player.
smart-libDemonstrates use of Broadpeak SmartBeam.
output-device-monitorDemonstrates use of OTVOutputDeviceMonitor and the monitoring of external connections and disconnections.

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.