An implementation of the IMAVideoDisplay protocol. This object is intended
to be initialized with the content player, and will reuse the player for
playing ads.
[[["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\u003eIMAAVPlayerVideoDisplay\u003c/code\u003e is an implementation of the \u003ccode\u003eIMAVideoDisplay\u003c/code\u003e protocol, designed to initialize with and reuse a content player for ad playback.\u003c/p\u003e\n"],["\u003cp\u003eIt allows publishers to receive specific events through the \u003ccode\u003eplayerVideoDisplayDelegate\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eProvides access to stream subtitles, which become available after the stream starts.\u003c/p\u003e\n"],["\u003cp\u003eEnables customization of stream playback initialization via the \u003ccode\u003estreamAssetOptions\u003c/code\u003e dictionary for \u003ccode\u003eAVURLAsset\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eIt is initialized with an \u003ccode\u003eAVPlayer\u003c/code\u003e instance using the \u003ccode\u003einitWithAVPlayer:\u003c/code\u003e method.\u003c/p\u003e\n"]]],[],null,["# GoogleInteractiveMediaAds Framework Reference\n\nIMAAVPlayerVideoDisplay\n=======================\n\n @interface IMAAVPlayerVideoDisplay : NSObject \u003c../Protocols/IMAVideoDisplay.html\u003e\n\nAn implementation of the IMAVideoDisplay protocol. This object is intended\nto be initialized with the content player, and will reuse the player for\nplaying ads.\n- `\n ``\n ``\n `\n\n ### [playerVideoDisplayDelegate](#/c:objc(cs)IMAAVPlayerVideoDisplay(py)playerVideoDisplayDelegate)\n\n `\n ` \n Allows the publisher to receive IMAAVPlayerVideoDisplay specific events. \n\n #### Declaration\n\n Swift \n\n weak var playerVideoDisplayDelegate: (any ../Protocols/IMAAVPlayerVideoDisplayDelegate.html)? { get set }\n\n Objective-C \n\n @property (nonatomic, weak, nullable) id\u003c../Protocols/IMAAVPlayerVideoDisplayDelegate.html\u003e playerVideoDisplayDelegate;\n\n- `\n ``\n ``\n `\n\n ### [subtitles](#/c:objc(cs)IMAAVPlayerVideoDisplay(py)subtitles)\n\n `\n ` \n The subtitles for the current stream. Will be nil until the stream starts playing. \n\n #### Declaration\n\n Swift \n\n var subtitles: [Any]? { get }\n\n Objective-C \n\n @property (nonatomic, readonly, nullable) NSArray *subtitles;\n\n- `\n ``\n ``\n `\n\n ### [streamAssetOptions](#/c:objc(cs)IMAAVPlayerVideoDisplay(py)streamAssetOptions)\n\n `\n ` \n A dictionary that contains options used to customize the initialization of an `AVURLAsset` for\n stream playback. Has no effect on client-side ads. \n\n #### Declaration\n\n Swift \n\n var streamAssetOptions: [String : Any]? { get set }\n\n Objective-C \n\n @property (nonatomic, copy, nullable) NSDictionary\u003cNSString *, id\u003e *streamAssetOptions;\n\n- `\n ``\n ``\n `\n\n ### [-initWithAVPlayer:](#/c:objc(cs)IMAAVPlayerVideoDisplay(im)initWithAVPlayer:)\n\n `\n ` \n Creates an IMAAVPlayerVideoDisplay that will play ads in the passed in\n content player. \n\n #### Declaration\n\n Swift \n\n init(avPlayer player: AVPlayer)\n\n Objective-C \n\n - (nonnull instancetype)initWithAVPlayer:(nonnull AVPlayer *)player;\n\n #### Parameters\n\n |----------------|------------------------------------------------|\n | ` `*player*` ` | the AVPlayer instance used for playing content |\n\n #### Return Value\n\n an IMAAVPlayerVideoDisplay instance"]]