Inherits from NSObject
Declared in PTAdBreak.h

Overview

The PTAdBreak instance represents a continous sequence of ads spliced into the content

Tasks

Properties

  •   relativeRange

    Returns a CMTimeRange describing the start time of the break relative to the original content and the duration of the ad break.

    property
  •   range

    Returns a CMTimeRange describing the absolute start time of the break (content with ads spliced) and the duration of the break.

    property
  •   ads

    Returns an array of ads to be played within this break

    property
  •   isWatched

    Returns a boolean indicating whether this break has been watched or not. An ad break is marked as watched by default when any ad within the ad break begins to play.

    property
  •   data

    Returns the data of the break.

    property
  •   type

    Specifies the type of the ad break (pre, mid or post).

    property
  • – addAd:

    Adds a PTAd instance to the list of ads contained within the break.

Properties

ads

Returns an array of ads to be played within this break

@property (nonatomic, readonly) NSMutableArray *ads

Discussion

Returns an array of ads to be played within this break

Declared In

PTAdBreak.h

data

Returns the data of the break.

@property (retain, nonatomic) NSDictionary *data

Discussion

Returns the data of the break.

Declared In

PTAdBreak.h

isWatched

Returns a boolean indicating whether this break has been watched or not. An ad break is marked as watched by default when any ad within the ad break begins to play.

@property (nonatomic, readonly) BOOL isWatched

Discussion

Returns a boolean indicating whether this break has been watched or not. An ad break is marked as watched by default when any ad within the ad break begins to play.

Declared In

PTAdBreak.h

range

Returns a CMTimeRange describing the absolute start time of the break (content with ads spliced) and the duration of the break.

@property (nonatomic, assign) CMTimeRange range

Discussion

Returns a CMTimeRange describing the absolute start time of the break (content with ads spliced) and the duration of the break.

Declared In

PTAdBreak.h

relativeRange

Returns a CMTimeRange describing the start time of the break relative to the original content and the duration of the ad break.

@property (nonatomic, assign) CMTimeRange relativeRange

Discussion

Returns a CMTimeRange describing the start time of the break relative to the original content and the duration of the ad break.

Declared In

PTAdBreak.h

type

Specifies the type of the ad break (pre, mid or post).

@property (nonatomic, readonly) PTAdBreakType type

Discussion

Specifies the type of the ad break (pre, mid or post).

Declared In

PTAdBreak.h

Instance Methods

addAd:

Adds a PTAd instance to the list of ads contained within the break.

- (void)addAd:(PTAd *)ptAd

Discussion

Adds a PTAd instance to the list of ads contained within the break.

Declared In

PTAdBreak.h