Browsers and Connected TV SDK 5 Integration Guide
To test the features and view the example code, please see the Browsers and Connected TV SDK 5 Example Code Quick Start guide.
This guide describes how to instantiate and use the CONNECT Player SDK 5 for Browsers and Connected TV and add basic and advanced features.
Prerequisites
Download the CONNECT Player SDK 5 for Browsers and Connected TV pack, and extract the following files to a suitable location on a web server. You can use localhost
for development and testing purposes.
- opy-sdk-js-5.4.x-integration.zip to create your basic player, see Creating the player.
- opy-sdk-js-5.4.x-production.zip to create the final version of your player, see Building the production version.
- opy-sdk-js-5.4.x-example-code.zip to develop your code, see the Browsers and Connected TV SDK 5 Example Code Quick Start guide.
The hosted video must be configured to allow cross-origin resource sharing (CORS) if not hosted on the same origin, such as a different domain or subdomain.
NAGRA recommends the SDK is deployed over HTTPS as the CONNECT Player SDK uses cryptographic functions provided by the browser; some browsers inhibit this functionality if not running over HTTPS.
Integration process
NAGRA recommends you perform integration of CONNECT Player SDK in the following stages:
- In conjunction with the Browsers SDK Example Code Quick Start guide, use the code examples to explore and test the features of the CONNECT Player.
- Using this guide, create a basic player; for details, see Creating the player.
- Develop your code to add encrypted playback and other features to the player; see: Adding player features.
- When development is complete, replace the integration file with the production version and carry out final testing; see Building the production version.
SmartTV
NAGRA recommends you complete integration of CONNECT Player SDK for Browsers before taking steps to move that working solution to Smart TVs.
For more information on integrating the SDK for Smart TVs, see Smart TV Apps.