AI-generated Key Takeaways
-
Several constants are available globally within the content, including keys for subtitle language and different subtitle URL formats.
-
The content also outlines several Ad Data Keys, such as the key for the ad break time, a constant for autodetecting bitrate, and a constant for fluid ad sizes.
-
Key names like
kIMASubtitleLanguage
,kIMASubtitleWebVTT
, andkIMASubtitleTTML
represent different subtitle-related constants. -
Ad data keys like
kIMAAdBreakTime
,kIMAAutodetectBitrate
, andkIMAFluidSize
are used for specific ad properties and behaviors. -
The content provides the declaration for each constant and ad data key in both Swift and Objective-C.
Constants
The following constants are available globally.
-
The key for subtitle language.
Declaration
Swift
let kIMASubtitleLanguage: String
Objective-C
extern NSString *const _Nonnull kIMASubtitleLanguage
-
The key for the WebVTT sidecar subtitle URL.
Declaration
Swift
let kIMASubtitleWebVTT: String
Objective-C
extern NSString *const _Nonnull kIMASubtitleWebVTT
-
The key for the TTML sidecar subtitle URL.
Declaration
Swift
let kIMASubtitleTTML: String
Objective-C
extern NSString *const _Nonnull kIMASubtitleTTML
-
The key for the time in seconds when the AD_BREAK_READY event fired.
Declaration
Swift
let kIMAAdBreakTime: String
Objective-C
extern NSString *const _Nonnull kIMAAdBreakTime
-
The default value of |bitrate property|, causes the effective bitrate to be automatically selected.
Declaration
Swift
let kIMAAutodetectBitrate: Int
Objective-C
extern const NSInteger kIMAAutodetectBitrate
-
Fluid companion ads have no fixed size, but rather adapt to fit the creative content they display. Set width and height to fluid size to allow companion slot to be filled by fluid companion ad.
Declaration
Swift
let kIMAFluidSize: Int
Objective-C
extern const NSInteger kIMAFluidSize
-
Property name used for key value observation.
Declaration
Swift
let kIMAPropertyCurrentTime: String
Objective-C
extern NSString *const _Nonnull kIMAPropertyCurrentTime