Billing metrics

To accommodate customers who want to pay only for what they use, rather than a fixed rate regardless of actual use, Adobe collects usage metrics and uses these metrics to determine how much to bill the customers.

Every time the player generates a stream start event, TVSDK starts to send HTTP messages periodically to Adobe’s billing system. The period, known as billable duration, can be different for standard VOD, pro VOD (mid-roll ads enabled), and live content. The default duration for each content type is 30 minutes, but your contract with Adobe determines the actual values.

The messages contain the following information:

  • Content type (live, linear, or VOD)
  • Content URL
  • Whether ads are enabled
  • Whether mid-roll ads are enabled (VOD only)
  • Whether the stream is protected by DRM
  • The TVSDK version and platform

Adobe pre-configures this arrangement, but if you want to change the arrangement, work with your Adobe Enablement representative.

To monitor the statistics that TVSDK sends to Adobe, obtain the URL from your Adobe Enablement representative, and use a network capture tool, for example, Charles, to see the data.

Configure billing metrics

If you use the default configuration, there is nothing else you need to do to enable or configure billing. If you obtained different configuration parameters from your Adobe Enablement representative, use the PTBillingMetricsConfiguration class to set these parameters up before initializing the media player.

Most customers should use the default configuration.


The configuration you set remains in effect for the life of the media player. Once you initialize the media player, you cannot change the configuration.

To configure billing metrics:

  1. Enter the following code sample.

    PTBillingMetricsConfiguration *billingConfig = [[[PTBillingMetricsConfiguration alloc] init] autorelease];
    billingConfig.enabled = YES;
    billingConfig.stdVODBillableDurationMinutes = 60.0;
    billingConfig.proVODBillableDurationMinutes = 30.0;
    billingConfig.liveBillableDurationMinutes = 15.0;
    // metadata is the PTMetadata instance set on PTMediaPlayerItem
    [metadata setMetadata:billingConfig forKey:PTBillingMetricsConfigurationMetadataKey];

Transmit billing metrics

TVSDK sends billing metrics to Adobe in an XML format.

If you use a network capture tool to monitor the statistics TVSDK transmits to Adobe, you should see units like the following:

     <userAgent>Mozilla/5.0 (iPad; CPU OS 9_1 like Mac OS X) AppleWebKit/601.1.46 (KHTML, like Gecko) Mobile/13B143</userAgent>
                 <platform>Mozilla/5.0 (iPad; CPU OS 9_1 like Mac OS X) AppleWebKit/601.1.46 (KHTML, like Gecko) Mobile/13B143</platform>

The boolean properties drmProtected, adsEnabled, and midrollEnabled appear only if they are true.

On this page