Changed Remote Repo!! Feb 8, 2020
thase/ Changed.
Learn more about the Brightcove Native Player SDKs.
ios-player-samples.git is a collection of sample applications for the Brightcove Player SDKs for iOS and tvOS, organized by subject area. An installation of CocoaPods 1.0.0 or higher is required to download the sample dependencies.
- CocoaPods 1.0+
- Xcode 11.0+
An Apple Developer Program account is required to run any sample app on a physical device. In order to provision your device, edit the sample app bundle identifier to make it unique to your organization.
To ensure you are using the latest releases of the Brightcove software components, update your Podspec repository before building any of the sample applications by running the following on the command line:
pod repo update
The Swift sample apps are written in Swift language version 4.2.
Unless otherwise instructed, samples can be run by following these steps:
- From the project directory, run
pod install
. - Open the corresponding
.xcworkspace
file. - Where the Podfile's pod directives do not specify that a dynamic framework is being installed, there is some additional setup required to build and run the project:
- Locate the
bcovpuiiconfont.ttf
file in the Pods/Brightcove-Player-SDK/ios/BrightcovePlayerSDK.framework folder. - Add this file to your Xcode project listing so that the font file is copied into the app bundle.
- In the built app's bundle, the font file should end up at the same level as the app's Info.plist file.
- The font file supplies some of the BrightcovePlayerUI interface elements, but it does not need to be listed in the plist itself.
- Locate the
- There are README.md files in several of the samples that provide additional setup steps that are specific to those examples.
Note: If you intend to use these samples offline, be sure to run Cocoapods before going offline in order to download the required dependencies.
FairPlay samples demonstrate how to use the FairPlay plugin in Swift.
To see an example of using FairPlay with IMA, refer to the FairPlayIMAPlayer sample app in the IMA folder.
In both of the FairPlay sample apps, there are references to FairPlayPublisherId
and FairPlayApplicationId
. These terms refer to FairPlay credentials that Brightcove does not provide, which are instead acquired through Apple directly.
FreeWheel samples demonstrate how to use the FreeWheel plugin.
BasicCastPlayer demonstrates how to use the Google Cast plugin.
IMA samples demonstrate how to use the IMA plugin. These are intended to cover use cases like VMAP, VAST, Server Side Ad rules, and advanced ad topics.
OfflinePlayer demonstrates downloading offline-enabled HLS videos and playing them back with or without a network connection.
Omniture samples demonstrate how to use the Omniture plugin.
Player samples demonstrate how to use the core SDK. These are intended to cover use cases like custom controls, analytics, and playback.
PlayerUICustomization demonstrates modification of the BCOVPlayerUI controls and customization of VoiceOver properties for accessibility.
SidecarSubtitles samples demonstrate how to use the sidecarSubtitles plugin.
BasicSSAIPlayer demonstrates use of the SSAI plugin for playback of Dynamic Delivery with or without Server-Side Ad Insertion.
- An example of creating a
BCOVPlaybackSessionConsumer
can be found in theOfflinePlayer
andCustomControls
sample apps. - Picture-in-Picture functionality can be found in the
VideoCloudBasicPlayer
sample app.