This repository contains samples relating to the JW Player SDK for iOS.
The following projects can be found within this repository:
The JWBestPracticeApps XCode project is composed of several targets which can be run as separate iOS applications. Each target adds a level of complexity to the base target, JWBestPracticeApps, which creates a basic JW Player with minimal customization. In each target, classes inherit from classes of more basic targets, allowing us to present relevant code in a clear way and spare you the redundancy.
-
JWAirPlay: adds AirPlay functionality (shocker!).
-
JWCasting: 'casts from JW Player to a Google ChromeCast receiver.
-
JWRemoteController: an Apple Watch app capable of controlling the JW Player in its companion iOS App, "JWRemotePlayer".
-
JWRemoteCastController: an Apple Watch app capable of casting the video playing in its companion iOS App, "JWRemoteCastPlayer", to a Google ChromeCast receiver.
-
JWFairPlayDrm: illustrates how to use our DRM implementation to play a FairPlay encrypted stream.
-
Voicer: voice control over the player's playback and casting using Siri.
Both the JW Player iOS SDK, as well as the Google Cast SDK required for JWCasting, can be installed using CocoaPods, which has already been set up in the project. Simply:
-
If you don't have CocoaPods, now's the time to rectify that oversight, with:
$ gem install cocoapods
-
In the project directory, run:
$ pod install
-
Close the project, and make sure to open it again from the
JWBestPracticeApps.xcworkspace
(not* xcodeproj). -
Remember to add your JWPlayer license key to the
info.plist
in the JWBestPracticeApps target. See our developer guide docs for more detailed instructions.
For this as well, see the Getting Started Guide on our developer's page for detailed instructions.
For targets that cast, and require Google's ChromeCast SDK, follow Google's setup instructions.
Important! To make sure you use a supported version of the ChromeCast Framework, check the JWPlayer SDK requirements.
The JWPlayer-VR-Developer-Demo project showcases how the JW Player VR SDK can be used to allow 360 video playback within your apps.
For setup instructions see the JWPlayer-VR-Developer-Demo README.
Was this repository helpful? How can we improve it? How's my driving?
Please send your feedback to .