BMPAdBreakConfig

Objective-C

@protocol BMPAdBreakConfig <BMPAdTagConfig>

Swift

protocol AdBreakConfig : AdTagConfig

Contains configuration options for an AdBreak.

See

BMPAdBreak
  • Unique identifier of the ad break.

    Declaration

    Objective-C

    @property (nonatomic, readonly) NSString *_Nonnull identifier;

    Swift

    var identifier: String { get }

    Return Value

    Unique identifier of the ad break.

  • Defines when the ad break should be played. Default is ‘pre’.

    Allowed values are:

    • ‘pre’: pre-roll ad
    • ‘post’: post-roll ad
    • fractional seconds: ‘10’, ‘12.5’ (mid-roll ad)
    • percentage of the entire video duration: ‘25%’, ‘50%’ (mid-roll ad)
    • timecode [hh:mm:ss.mmm]: ‘00:10:30.000’, ‘01:00:00.000’ (mid-roll ad)

    Declaration

    Objective-C

    @property (nonatomic, readonly) NSString *_Nonnull position;

    Swift

    var position: String { get }

    Return Value

    The defined position at which the ad should play.

  • Specifies after which time ads in the ad break become skippable. By setting it to -1, an ad is marked as not skippable. Unless set to NaN, this will override the skip settings from the downloaded ads.

    Declaration

    Objective-C

    @property (nonatomic, readonly) NSTimeInterval skippableAfter;

    Swift

    var skippableAfter: TimeInterval { get }

    Return Value

    The time after which ads in the ad break become skippable.