# IMAAVPlayerVideoDisplay

    @interface IMAAVPlayerVideoDisplay : NSObject <https://developers.google.com/ad-manager/dynamic-ad-insertion/sdk/ios/reference/Protocols/IMAVideoDisplay.html>

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


  ### [playerVideoDisplayDelegate](https://developers.google.com/ad-manager/dynamic-ad-insertion/sdk/ios/reference/Classes/IMAAVPlayerVideoDisplay#/c:objc(cs)IMAAVPlayerVideoDisplay(py)playerVideoDisplayDelegate)


  ` Allows the publisher to receive IMAAVPlayerVideoDisplay specific events.

  #### Declaration

  Swift

      weak var playerVideoDisplayDelegate: (any https://developers.google.com/ad-manager/dynamic-ad-insertion/sdk/ios/reference/Protocols/IMAAVPlayerVideoDisplayDelegate.html)? { get set }

  Objective-C

      @property (nonatomic, weak, nullable) id<https://developers.google.com/ad-manager/dynamic-ad-insertion/sdk/ios/reference/Protocols/IMAAVPlayerVideoDisplayDelegate.html> playerVideoDisplayDelegate;

- `


  ### [subtitles](https://developers.google.com/ad-manager/dynamic-ad-insertion/sdk/ios/reference/Classes/IMAAVPlayerVideoDisplay#/c:objc(cs)IMAAVPlayerVideoDisplay(py)subtitles)


  ` The subtitles for the current stream. Will be nil until the stream starts playing.

  #### Declaration

  Swift

      var subtitles: [Any]? { get }

  Objective-C

      @property (nonatomic, readonly, nullable) NSArray *subtitles;

- `


  ### [streamAssetOptions](https://developers.google.com/ad-manager/dynamic-ad-insertion/sdk/ios/reference/Classes/IMAAVPlayerVideoDisplay#/c:objc(cs)IMAAVPlayerVideoDisplay(py)streamAssetOptions)


  ` A dictionary that contains options used to customize the initialization of an `AVURLAsset` for
  stream playback. Has no effect on client-side ads.

  #### Declaration

  Swift

      var streamAssetOptions: [String : Any]? { get set }

  Objective-C

      @property (nonatomic, copy, nullable) NSDictionary<NSString *, id> *streamAssetOptions;

- `


  ### [-initWithAVPlayer:](https://developers.google.com/ad-manager/dynamic-ad-insertion/sdk/ios/reference/Classes/IMAAVPlayerVideoDisplay#/c:objc(cs)IMAAVPlayerVideoDisplay(im)initWithAVPlayer:)


  ` Creates an IMAAVPlayerVideoDisplay that will play ads in the passed in
  content player.

  #### Declaration

  Swift

      init(avPlayer player: AVPlayer)

  Objective-C

      - (nonnull instancetype)initWithAVPlayer:(nonnull AVPlayer *)player;

  #### Parameters

  |---|---|
  | ` player ` | the AVPlayer instance used for playing content |

  #### Return Value

  an IMAAVPlayerVideoDisplay instance