IMAVODStreamRequest
@interface IMAVODStreamRequest : IMAStreamRequestData object describing a VOD stream request.
-
The stream request content source ID. This is used to determine the content source of the stream.
Declaration
Swift
var contentSourceID: String { get }Objective-C
@property (nonatomic, copy, readonly) NSString *_Nonnull contentSourceID; -
The stream request video ID. This is used to determine which specific video stream should be played.
Declaration
Swift
var videoID: String { get }Objective-C
@property (nonatomic, copy, readonly) NSString *_Nonnull videoID; -
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.
Declaration
Swift
var useHLSInterstitials: Bool { get set }Objective-C
@property (nonatomic) BOOL useHLSInterstitials; -
Initializes a stream request instance with the given content source ID and video ID. Uses the given ad display container to display the stream. This is used for on-demand streams.
Declaration
Swift
init(contentSourceID: String, videoID: String, networkCode: String?, adDisplayContainer: IMAAdDisplayContainer, videoDisplay: any IMAVideoDisplay, userContext: Any?)Objective-C
- (nonnull instancetype) initWithContentSourceID:(nonnull NSString *)contentSourceID videoID:(nonnull NSString *)videoID networkCode:(nullable NSString *)networkCode adDisplayContainer:(nonnull IMAAdDisplayContainer *)adDisplayContainer videoDisplay:(nonnull id<IMAVideoDisplay>)videoDisplay userContext:(nullable id)userContext;Parameters
contentSourceIDthe content source ID for this stream
videoIDthe video identifier for this stream
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 Value
the IMAVODStreamRequest instance
-
-initWithContentSourceID:videoID:networkCode:adDisplayContainer:videoDisplay:pictureInPictureProxy:userContext:
Initializes a stream request instance with the given content source ID and video ID. Uses the given ad display container to display the stream. This is used for on-demand streams. Uses the picture in picture proxy to track PIP events.
Declaration
Swift
init(contentSourceID: String, videoID: String, networkCode: String?, adDisplayContainer: IMAAdDisplayContainer, videoDisplay: any IMAVideoDisplay, pictureInPictureProxy: IMAPictureInPictureProxy?, userContext: Any?)Objective-C
- (nonnull instancetype) initWithContentSourceID:(nonnull NSString *)contentSourceID videoID:(nonnull NSString *)videoID networkCode:(nullable NSString *)networkCode adDisplayContainer:(nonnull IMAAdDisplayContainer *)adDisplayContainer videoDisplay:(nonnull id<IMAVideoDisplay>)videoDisplay pictureInPictureProxy: (nullable IMAPictureInPictureProxy *)pictureInPictureProxy userContext:(nullable id)userContext;Parameters
contentSourceIDthe content source ID for this stream
videoIDthe video identifier for this stream
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 Value
the IMAVODStreamRequest instance
-
Deprecated
Use contentSourceID:videoId:networkCode:adDisplayContainer:videoDisplay:userContext: instead.
Initializes a stream request instance with the given content source ID and video ID. Uses the given ad display container to display the stream. This is used for on-demand streams.
Declaration
Swift
init(contentSourceID: String, videoID: String, adDisplayContainer: IMAAdDisplayContainer, videoDisplay: any IMAVideoDisplay, userContext: Any?)Objective-C
- (nonnull instancetype) initWithContentSourceID:(nonnull NSString *)contentSourceID videoID:(nonnull NSString *)videoID adDisplayContainer:(nonnull IMAAdDisplayContainer *)adDisplayContainer videoDisplay:(nonnull id<IMAVideoDisplay>)videoDisplay userContext:(nullable id)userContext;Parameters
contentSourceIDthe content source ID for this stream
videoIDthe video identifier for this stream
adDisplayContainerthe IMAAdDisplayContainer for rendering the ad UI
videoDisplaythe IMAVideoDisplay for playing the stream
userContextThe user context for tracking requests (optional)
Return Value
the IMAVODStreamRequest instance
-
Deprecated
Use initWithContentSourceID:videoID:networkCode:adDisplayContainer:videoDisplay:pictureInPictureProxy:userContext: instead.
Initializes a stream request instance with the given content source ID and video ID. Uses the given ad display container to display the stream. This is used for on-demand streams. Uses the picture in picture proxy to track PIP events.
Declaration
Swift
init(contentSourceID: String, videoID: String, adDisplayContainer: IMAAdDisplayContainer, videoDisplay: any IMAVideoDisplay, pictureInPictureProxy: IMAPictureInPictureProxy?, userContext: Any?)Objective-C
- (nonnull instancetype) initWithContentSourceID:(nonnull NSString *)contentSourceID videoID:(nonnull NSString *)videoID adDisplayContainer:(nonnull IMAAdDisplayContainer *)adDisplayContainer videoDisplay:(nonnull id<IMAVideoDisplay>)videoDisplay pictureInPictureProxy: (nullable IMAPictureInPictureProxy *)pictureInPictureProxy userContext:(nullable id)userContext;Parameters
contentSourceIDthe content source ID for this stream
videoIDthe video identifier for this stream
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 Value
the IMAVODStreamRequest instance