AI-generated Key Takeaways
-
IMAPodStreamRequest is a data object used for requesting a pod serving stream.
-
It includes a read-only
customAssetKeyproperty which represents the asset key for the stream request. -
There are two initializer methods, both requiring a network code, custom asset key, ad display container, and video display to create a request instance.
-
One initializer includes an optional
pictureInPictureProxyparameter for tracking PIP events.
IMAPodStreamRequest
@interface IMAPodStreamRequest : IMAStreamRequestData object describing a stream request for a pod serving stream.
-
The custom asset key for the stream request.
Declaration
Swift
var customAssetKey: String { get }Objective-C
@property (nonatomic, copy, readonly) NSString *_Nonnull customAssetKey; -
Initializes a stream request instance with the given network code and custom asset key. Uses the given ad display container to display the stream.
Declaration
Swift
init(networkCode: String, customAssetKey: String, adDisplayContainer: IMAAdDisplayContainer, videoDisplay: any IMAVideoDisplay, userContext: Any?)Objective-C
- (nonnull instancetype) initWithNetworkCode:(nonnull NSString *)networkCode customAssetKey:(nonnull NSString *)customAssetKey adDisplayContainer:(nonnull IMAAdDisplayContainer *)adDisplayContainer videoDisplay:(nonnull id<IMAVideoDisplay>)videoDisplay userContext:(nullable id)userContext;Parameters
networkCodeThe network code for the stream.
customAssetKeyThe asset key for the stream.
adDisplayContainerThe IMAAdDisplayContainer for rendering the ad UI.
videoDisplayThe IMAVideoDisplay where the stream will be played.
userContextThe user context for tracking requests (optional)
Return Value
The IMAPodStreamRequest instance.
-
-initWithNetworkCode:customAssetKey:adDisplayContainer:videoDisplay:pictureInPictureProxy:userContext:
Initializes a stream request instance with the given network code and custom asset key. Uses the given ad display container to display the stream. Uses the picture in picture proxy to track PIP events.
Declaration
Swift
init(networkCode: String, customAssetKey: String, adDisplayContainer: IMAAdDisplayContainer, videoDisplay: any IMAVideoDisplay, pictureInPictureProxy: IMAPictureInPictureProxy?, userContext: Any?)Objective-C
- (nonnull instancetype) initWithNetworkCode:(nonnull NSString *)networkCode customAssetKey:(nonnull NSString *)customAssetKey adDisplayContainer:(nonnull IMAAdDisplayContainer *)adDisplayContainer videoDisplay:(nonnull id<IMAVideoDisplay>)videoDisplay pictureInPictureProxy: (nullable IMAPictureInPictureProxy *)pictureInPictureProxy userContext:(nullable id)userContext;Parameters
networkCodeThe network code for the stream.
customAssetKeyThe asset key for the stream.
adDisplayContainerThe IMAAdDisplayContainer for rendering the ad UI.
videoDisplayThe IMAVideoDisplay where the stream will be played.
pictureInPictureProxyThe IMAPictureInPictureProxy for tracking PIP events.
userContextThe user context for tracking requests (optional)
Return Value
The IMAPodStreamRequest instance.