IMALiveStreamRequest
@interface IMALiveStreamRequest : IMAStreamRequestData object describing a live stream request.
- 
                  
                  This is used to determine which stream should be played. The live stream request asset key is an identifier which can be found in the DFP UI. @type {!string} DeclarationSwift var assetKey: String { get }Objective-C @property (nonatomic, copy, readonly) NSString *_Nonnull assetKey;
- 
                  
                  Specifies whether to use HLS interstitials for this stream. This will request that DAI use HLS interstitials, or return an error if interstitials are not supported. If IMAAVPlayerVideoDisplay is used in the stream request, the SDK will perform a compatibility check to ensure the device can handle HLS interstitial playback, and will throw an error at request time otherwise. If a custom video display is used, the compatibility check will not be performed. DeclarationSwift var useHLSInterstitials: Bool { get set }Objective-C @property (nonatomic) BOOL useHLSInterstitials;
- 
                  
                  Initializes a live stream request instance with the given assetKey. Uses the given ad display container to display the stream. DeclarationSwift init(assetKey: String, networkCode: String?, adDisplayContainer: IMAAdDisplayContainer, videoDisplay: any IMAVideoDisplay, userContext: Any?)Objective-C - (nonnull instancetype) initWithAssetKey:(nonnull NSString *)assetKey networkCode:(nullable NSString *)networkCode adDisplayContainer:(nonnull IMAAdDisplayContainer *)adDisplayContainer videoDisplay:(nonnull id<IMAVideoDisplay>)videoDisplay userContext:(nullable id)userContext;ParametersassetKeythe stream assetKey networkCodethe network code for the stream (optional but recommended). adDisplayContainerthe IMAAdDisplayContainer for rendering the ad UI videoDisplaythe IMAVideoDisplay for playing the stream userContextThe user context for tracking requests (optional) Return Valuethe IMALiveStreamRequest instance 
- 
                  
                  Initializes a live stream request instance with the given assetKey. Uses the given ad display container to display the stream. Uses the picture in picture proxy to track PIP events. DeclarationSwift init(assetKey: String, networkCode: String?, adDisplayContainer: IMAAdDisplayContainer, videoDisplay: any IMAVideoDisplay, pictureInPictureProxy: IMAPictureInPictureProxy?, userContext: Any?)Objective-C - (nonnull instancetype) initWithAssetKey:(nonnull NSString *)assetKey networkCode:(nullable NSString *)networkCode adDisplayContainer:(nonnull IMAAdDisplayContainer *)adDisplayContainer videoDisplay:(nonnull id<IMAVideoDisplay>)videoDisplay pictureInPictureProxy: (nullable IMAPictureInPictureProxy *)pictureInPictureProxy userContext:(nullable id)userContext;ParametersassetKeythe stream assetKey networkCodethe network code for the stream (optional but recommended). adDisplayContainerthe IMAAdDisplayContainer for rendering the ad UI videoDisplaythe IMAVideoDisplay for playing the stream pictureInPictureProxythe IMAPictureInPictureProxy for tracking PIP events userContextThe user context for tracking requests (optional) Return Valuethe IMALiveStreamRequest instance 
- 
                  
                  Deprecated Use initWithAssetKey:networkCode:adDisplayContainer:videoDisplay:userContext: instead. Initializes a live stream request instance with the given assetKey. Uses the given ad display container to display the stream. DeclarationSwift init(assetKey: String, adDisplayContainer: IMAAdDisplayContainer, videoDisplay: any IMAVideoDisplay, userContext: Any?)Objective-C - (nonnull instancetype) initWithAssetKey:(nonnull NSString *)assetKey adDisplayContainer:(nonnull IMAAdDisplayContainer *)adDisplayContainer videoDisplay:(nonnull id<IMAVideoDisplay>)videoDisplay userContext:(nullable id)userContext;ParametersassetKeythe stream assetKey adDisplayContainerthe IMAAdDisplayContainer for rendering the ad UI videoDisplaythe IMAVideoDisplay for playing the stream userContextThe user context for tracking requests (optional) Return Valuethe IMALiveStreamRequest instance 
- 
                  
                  Deprecated Use initWithAssetKey:networkCode:adDisplayContainer:videoDisplay:pictureInPictureProxy:userContext: instead. Initializes a live stream request instance with the given assetKey. Uses the given ad display container to display the stream. Uses the picture in picture proxy to track PIP events. DeclarationSwift init(assetKey: String, adDisplayContainer: IMAAdDisplayContainer, videoDisplay: any IMAVideoDisplay, pictureInPictureProxy: IMAPictureInPictureProxy?, userContext: Any?)Objective-C - (nonnull instancetype) initWithAssetKey:(nonnull NSString *)assetKey adDisplayContainer:(nonnull IMAAdDisplayContainer *)adDisplayContainer videoDisplay:(nonnull id<IMAVideoDisplay>)videoDisplay pictureInPictureProxy: (nullable IMAPictureInPictureProxy *)pictureInPictureProxy userContext:(nullable id)userContext;ParametersassetKeythe stream assetKey adDisplayContainerthe IMAAdDisplayContainer for rendering the ad UI videoDisplaythe IMAVideoDisplay for playing the stream pictureInPictureProxythe IMAPictureInPictureProxy for tracking PIP events userContextThe user context for tracking requests (optional) Return Valuethe IMALiveStreamRequest instance