JWPlayerKit 4.x Best Practice Apps

This repository contains samples relating to the JWPlayerKit SDK version 4.x for iOS.

BestPracticeApps

The BestPracticeApps workspace is composed of several projects (with corresponding targets), each of which runs as a separate iOS application.

Project Description
Advanced Player Advanced implementation of JWPlayerKit SDK with VAST ads.
Basic Player Simple implementation of JWPlayerKit SDK with a single player item.
ChromeCast Simple implementation including the ability to cast to ChromeCast devices.1
ChromeCast-GCKUICastButton Simple implementation using the cast button provided by the ChromeCast framework to cast to ChromeCast devices.1
Custom UI Demonstrates how to create a basic user interface from scratch, using only JWPlayerView.
DRM Fairplay Simple implementation of JWPlayerKit SDK that plays protected video content through FairPlay (DRM).
Google IMA Ads Simple implementation of JWPlayerKit SDK with Google IMA.
Google DAI Ads Simple implementation of JWPlayerKit SDK with Google DAI.
JWPlayer Ads Simple implementation of JWPlayerKit SDK with advertising.
Recommendations Simple implementation including recommended related content.
Picture in Picture Demonstrates how to enable Picture in Picture.

Setup

ℹ️ The project uses cocoapods to manage dependencies.

Steps to compile:

  1. Make sure Xcode is closed.
  2. In the Terminal app, navigate to the project's root directory.
  3. To download and integrate the dependencies in the project, run:
    pod install
  4. Open JWBestPracticeApps-4x.xcworkspace.
  5. Add your JWPlayer iOS SDK license key to the AppDelegate for the target project:
    JWPlayerKitLicense.setLicenseKey(<#Your License Key#>)

Now you can build and run the project.

⚠️ Looking for SDK version 3.x?
The demo apps in this repository are intended to be used with version 4.x of the JWPlayerKit iOS SDK.
For information on JWPlayer SDK version 3.x BestPracticeApps, go to this link.

Footnotes

  1. Unlike the other apps in this project which are working code examples, this app is a valid code example that nevertheless does not work as-is. Rather, it requires the dynamic build of the Google Cast SDK. As Google does not distribute this via CocoaPods, it must be added manually to a given project — as we do not include external frameworks in our repositories. Please refer to our documentation for more information. 2