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.
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-14 UTC."],[[["\u003cp\u003e\u003ccode\u003eIMALiveStreamRequest\u003c/code\u003e is a data object that describes a live stream request, primarily identified by an \u003ccode\u003eassetKey\u003c/code\u003e found in the DFP UI.\u003c/p\u003e\n"],["\u003cp\u003eIt can be initialized using \u003ccode\u003einitWithAssetKey:adDisplayContainer:videoDisplay:userContext:\u003c/code\u003e to request and display a live stream with ads.\u003c/p\u003e\n"],["\u003cp\u003eAlternatively, it can be initialized with \u003ccode\u003einitWithAssetKey:adDisplayContainer:videoDisplay:pictureInPictureProxy:userContext:\u003c/code\u003e to include Picture-in-Picture functionality.\u003c/p\u003e\n"],["\u003cp\u003eThe request requires an \u003ccode\u003eassetKey\u003c/code\u003e, an \u003ccode\u003eIMAAdDisplayContainer\u003c/code\u003e for ad UI, and an \u003ccode\u003eIMAVideoDisplay\u003c/code\u003e to play the stream.\u003c/p\u003e\n"]]],[],null,["IMALiveStreamRequest \n\n @interface IMALiveStreamRequest : ../Classes/IMAStreamRequest.html\n\nData object describing a live stream request.\n- `\n ``\n ``\n `\n\n [assetKey](#/c:objc(cs)IMALiveStreamRequest(py)assetKey)`\n ` \n This is used to determine which stream should be played.\n The live stream request asset key is an identifier which can be\n [found in the DFP UI](https://goo.gl/wjL9DI).\n\n @type {!string} \n\n Declaration \n Swift \n\n var assetKey: String { get }\n\n Objective-C \n\n @property (nonatomic, copy, readonly) NSString *_Nonnull assetKey;\n\n- `\n ``\n ``\n `\n\n [-initWithAssetKey:networkCode:adDisplayContainer:videoDisplay:userContext:](#/c:objc(cs)IMALiveStreamRequest(im)initWithAssetKey:networkCode:adDisplayContainer:videoDisplay:userContext:)`\n ` \n Initializes a live stream request instance with the given assetKey. Uses the given ad display\n container to display the stream. \n\n Declaration \n Swift \n\n init(assetKey: String, networkCode: String?, adDisplayContainer: ../Classes/IMAAdDisplayContainer.html, videoDisplay: any ../Protocols/IMAVideoDisplay.html, userContext: Any?)\n\n Objective-C \n\n - (nonnull instancetype)\n initWithAssetKey:(nonnull NSString *)assetKey\n networkCode:(nullable NSString *)networkCode\n adDisplayContainer:(nonnull ../Classes/IMAAdDisplayContainer.html *)adDisplayContainer\n videoDisplay:(nonnull id\u003c../Protocols/IMAVideoDisplay.html\u003e)videoDisplay\n userContext:(nullable id)userContext;\n\n Parameters\n\n |----------------------------|-------------------------------------------------------------|\n | ` `*assetKey*` ` | the stream assetKey |\n | ` `*networkCode*` ` | the network code for the stream (optional but recommended). |\n | ` `*adDisplayContainer*` ` | the IMAAdDisplayContainer for rendering the ad UI |\n | ` `*videoDisplay*` ` | the IMAVideoDisplay for playing the stream |\n | ` `*userContext*` ` | The user context for tracking requests (optional) |\n\n Return Value\n\n the IMALiveStreamRequest instance\n- `\n ``\n ``\n `\n\n [-initWithAssetKey:networkCode:adDisplayContainer:videoDisplay:pictureInPictureProxy:userContext:](#/c:objc(cs)IMALiveStreamRequest(im)initWithAssetKey:networkCode:adDisplayContainer:videoDisplay:pictureInPictureProxy:userContext:)`\n ` \n Initializes a live stream request instance with the given assetKey. Uses the given ad display\n container to display the stream. Uses the picture in picture proxy to track PIP events. \n\n Declaration \n Swift \n\n init(assetKey: String, networkCode: String?, adDisplayContainer: ../Classes/IMAAdDisplayContainer.html, videoDisplay: any ../Protocols/IMAVideoDisplay.html, pictureInPictureProxy: ../Classes/IMAPictureInPictureProxy.html?, userContext: Any?)\n\n Objective-C \n\n - (nonnull instancetype)\n initWithAssetKey:(nonnull NSString *)assetKey\n networkCode:(nullable NSString *)networkCode\n adDisplayContainer:(nonnull ../Classes/IMAAdDisplayContainer.html *)adDisplayContainer\n videoDisplay:(nonnull id\u003c../Protocols/IMAVideoDisplay.html\u003e)videoDisplay\n pictureInPictureProxy:\n (nullable ../Classes/IMAPictureInPictureProxy.html *)pictureInPictureProxy\n userContext:(nullable id)userContext;\n\n Parameters\n\n |-------------------------------|-------------------------------------------------------------|\n | ` `*assetKey*` ` | the stream assetKey |\n | ` `*networkCode*` ` | the network code for the stream (optional but recommended). |\n | ` `*adDisplayContainer*` ` | the IMAAdDisplayContainer for rendering the ad UI |\n | ` `*videoDisplay*` ` | the IMAVideoDisplay for playing the stream |\n | ` `*pictureInPictureProxy*` ` | the IMAPictureInPictureProxy for tracking PIP events |\n | ` `*userContext*` ` | The user context for tracking requests (optional) |\n\n Return Value\n\n the IMALiveStreamRequest instance\n- `\n ``\n ``\n `\n\n [-initWithAssetKey:adDisplayContainer:videoDisplay:userContext:](#/c:objc(cs)IMALiveStreamRequest(im)initWithAssetKey:adDisplayContainer:videoDisplay:userContext:)`\n ` \n Deprecated\n\n Use initWithAssetKey:networkCode:adDisplayContainer:videoDisplay:userContext: instead. \n Initializes a live stream request instance with the given assetKey. Uses the given ad display\n container to display the stream. \n\n Declaration \n Swift \n\n init(assetKey: String, adDisplayContainer: ../Classes/IMAAdDisplayContainer.html, videoDisplay: any ../Protocols/IMAVideoDisplay.html, userContext: Any?)\n\n Objective-C \n\n - (nonnull instancetype)\n initWithAssetKey:(nonnull NSString *)assetKey\n adDisplayContainer:(nonnull ../Classes/IMAAdDisplayContainer.html *)adDisplayContainer\n videoDisplay:(nonnull id\u003c../Protocols/IMAVideoDisplay.html\u003e)videoDisplay\n userContext:(nullable id)userContext;\n\n Parameters\n\n |----------------------------|---------------------------------------------------|\n | ` `*assetKey*` ` | the stream assetKey |\n | ` `*adDisplayContainer*` ` | the IMAAdDisplayContainer for rendering the ad UI |\n | ` `*videoDisplay*` ` | the IMAVideoDisplay for playing the stream |\n | ` `*userContext*` ` | The user context for tracking requests (optional) |\n\n Return Value\n\n the IMALiveStreamRequest instance\n- `\n ``\n ``\n `\n\n [-initWithAssetKey:adDisplayContainer:videoDisplay:pictureInPictureProxy:userContext:](#/c:objc(cs)IMALiveStreamRequest(im)initWithAssetKey:adDisplayContainer:videoDisplay:pictureInPictureProxy:userContext:)`\n ` \n Deprecated\n\n Use initWithAssetKey:networkCode:adDisplayContainer:videoDisplay:pictureInPictureProxy:userContext: instead. \n Initializes a live stream request instance with the given assetKey. Uses the given ad display\n container to display the stream. Uses the picture in picture proxy to track PIP events. \n\n Declaration \n Swift \n\n init(assetKey: String, adDisplayContainer: ../Classes/IMAAdDisplayContainer.html, videoDisplay: any ../Protocols/IMAVideoDisplay.html, pictureInPictureProxy: ../Classes/IMAPictureInPictureProxy.html?, userContext: Any?)\n\n Objective-C \n\n - (nonnull instancetype)\n initWithAssetKey:(nonnull NSString *)assetKey\n adDisplayContainer:(nonnull ../Classes/IMAAdDisplayContainer.html *)adDisplayContainer\n videoDisplay:(nonnull id\u003c../Protocols/IMAVideoDisplay.html\u003e)videoDisplay\n pictureInPictureProxy:\n (nullable ../Classes/IMAPictureInPictureProxy.html *)pictureInPictureProxy\n userContext:(nullable id)userContext;\n\n Parameters\n\n |-------------------------------|------------------------------------------------------|\n | ` `*assetKey*` ` | the stream assetKey |\n | ` `*adDisplayContainer*` ` | the IMAAdDisplayContainer for rendering the ad UI |\n | ` `*videoDisplay*` ` | the IMAVideoDisplay for playing the stream |\n | ` `*pictureInPictureProxy*` ` | the IMAPictureInPictureProxy for tracking PIP events |\n | ` `*userContext*` ` | The user context for tracking requests (optional) |\n\n Return Value\n\n the IMALiveStreamRequest instance"]]