IMALiveStreamRequest

@interface IMALiveStreamRequest : IMAStreamRequest

Data 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}

    Declaration

    Swift

    var assetKey: String! { get }

    Objective-C

    @property (readonly, copy, nonatomic) NSString *assetKey;
  • Initializes a live stream request instance with the given assetKey. Uses the given ad display container to display the stream.

    Declaration

    Objective-C

    - (instancetype)initWithAssetKey:(NSString *)assetKey
                  adDisplayContainer:(IMAAdDisplayContainer *)adDisplayContainer
                        videoDisplay:(id<IMAVideoDisplay>)videoDisplay;

    Parameters

    assetKey

    the stream assetKey

    adDisplayContainer

    the IMAAdDisplayContainer for rendering the ad UI

    videoDisplay

    the IMAVideoDisplay for playing the stream

    Return Value

    the 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.

    Declaration

    Objective-C

    - (instancetype)initWithAssetKey:(NSString *)assetKey
                  adDisplayContainer:(IMAAdDisplayContainer *)adDisplayContainer
                        videoDisplay:(id<IMAVideoDisplay>)videoDisplay
               pictureInPictureProxy:
                   (IMAPictureInPictureProxy *)pictureInPictureProxy;

    Parameters

    assetKey

    the stream assetKey

    adDisplayContainer

    the IMAAdDisplayContainer for rendering the ad UI

    videoDisplay

    the IMAVideoDisplay for playing the stream

    pictureInPictureProxy

    the IMAPictureInPictureProxy for tracking PIP events

    Return Value

    the IMALiveStreamRequest instance