No description, website, or topics provided.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
BitmovinAnalyticsCollector
Example
.gitignore
.travis.yml
BitmovinAnalyticsCollector.podspec
LICENSE
README.md
_Pods.xcodeproj

README.md

BitmovinAnalyticsCollector

Support

Platforms
  • iOS 9.0+
  • tvOS 9.0+
Video Players

Example

The following example creates a BitmovinAnalytics object and attaches an AVPlayer instance to it.

// Create a BitmovinAnalyticsConfig using your Bitmovin analytics license key and/or your Bitmovin Player Key
let config:BitmovinAnalyticsConfig = BitmovinAnalyticsConfig(key:"YOUR_ANALYTICS_KEY",playerKey:"YOUR_PLAYER_KEY")
let config:BitmovinAnalyticsConfig = BitmovinAnalyticsConfig(key:"YOUR_ANALYTICS_KEY")

// Create a BitmovinAnalytics object using the config just created
analyticsCollector = BitmovinAnalytics(config: config);

// Attach your player instance
analyticsCollector.attachAVPlayer(player: player);

// Detach your player when you are done.
analyticsCollector.detachPlayer()

Optional Configuration Parameters

config.cdnProvider = CdnProvider.akamai
config.customData1 = "customData1"
config.customData2 = "customData2"
config.customData3 = "customData3"
config.customData4 = "customData4"
config.customData5 = "customData5"
config.customerUserId = "customUserId"
config.experimentName = "experiement-1"
config.videoId = "iOSHLSStatic"
config.path = "/vod/breadcrumb/"

A full example app can be seen here.

Requirements

Installation

BitmovinAnalyticsCollector is available through CocoaPods. We depend on cocoapods version >= 1.4. To install it, simply add the following line to your Podfile:

  pod 'BitmovinAnalyticsCollector', git: 'https://github.com/bitmovin/bitmovin-analytics-collector-ios.git', tag: '1.5.2'
  pod 'BitmovinPlayer', git: 'https://github.com/bitmovin/bitmovin-player-ios-sdk-cocoapod.git', tag: '2.11.0'

  use_frameworks!

Then, in your command line run

pod install

Author

Cory Zachman, cory.zachman@bitmovin.com

License

BitmovinAnalyticsCollector is available under the MIT license. See the LICENSE file for more info.