# GoogleInteractiveMediaAds Framework Reference

# IMAVideoDisplay

    @protocol IMAVideoDisplay <https://developers.google.com/interactive-media-ads/docs/sdks/tvos/client-side/reference/Protocols/IMAAdPlaybackInfo.html>

Declares a simple video display class used for ad playback.
- `


  ### [delegate](https://developers.google.com/interactive-media-ads/docs/sdks/tvos/client-side/reference/Protocols/IMAVideoDisplay#/c:objc(pl)IMAVideoDisplay(py)delegate)


  ` Allows the publisher to send player events to the SDK.

  #### Declaration

  Swift

      weak var delegate: (any https://developers.google.com/interactive-media-ads/docs/sdks/tvos/client-side/reference/Protocols/IMAVideoDisplayDelegate.html)? { get set }

  Objective-C

      @property (nonatomic, weak, nullable) id<https://developers.google.com/interactive-media-ads/docs/sdks/tvos/client-side/reference/Protocols/IMAVideoDisplayDelegate.html> delegate;

- `


  ### [volume](https://developers.google.com/interactive-media-ads/docs/sdks/tvos/client-side/reference/Protocols/IMAVideoDisplay#/c:objc(pl)IMAVideoDisplay(py)volume)


  ` Set and get the volume for the current ad. From 0 (muted) to 1 (loudest). This volume is
  relative to device volume, not absolute. Default value is 1.

  #### Declaration

  Swift

      var volume: Float { get set }

  Objective-C

      @property (nonatomic) float volume;

- `


  ### [-loadStream:withSubtitles:](https://developers.google.com/interactive-media-ads/docs/sdks/tvos/client-side/reference/Protocols/IMAVideoDisplay#/c:objc(pl)IMAVideoDisplay(im)loadStream:withSubtitles:)


  ` Called to inform the VideoDisplay to load the passed URL with the subtitles for the stream.
  Subtitles are available only for dynamic ad insertion VOD streams and can be ignored
  for client side ads or dynamic ad insertion live streams.

  #### Declaration

  Swift

      func loadStream(_ streamURL: URL, withSubtitles subtitles: [[String : String]])

  Objective-C

      - (void)loadStream:(nonnull NSURL *)streamURL
           withSubtitles:
               (nonnull NSArray<NSDictionary<NSString *, NSString *> *> *)subtitles;

  #### Parameters

  |---|---|
  | ` streamURL ` | the URL of the stream |
  | ` subtitles ` | the subtitles for the stream. Each entry in the subtitles array is an *NSDictionary* that corresponds to a language. Each dictionary will have a *language* key with a two letter language string value, a *language name* to specify the set of subtitles if multiple sets exist for the same language, and one or more subtitle key/value pairs. Here's an example NSDictionary for English: "language" -> "en" "language_name" -> "English" "webvtt" -> "https://somedomain.com/vtt/en.vtt" "ttml" -> "https://somedomain.com/ttml/en.ttml" |

- `


  ### [-play](https://developers.google.com/interactive-media-ads/docs/sdks/tvos/client-side/reference/Protocols/IMAVideoDisplay#/c:objc(pl)IMAVideoDisplay(im)play)


  ` Called to inform the VideoDisplay to play.

  #### Declaration

  Swift

      func play()

  Objective-C

      - (void)play;

- `


  ### [-pause](https://developers.google.com/interactive-media-ads/docs/sdks/tvos/client-side/reference/Protocols/IMAVideoDisplay#/c:objc(pl)IMAVideoDisplay(im)pause)


  ` Called to inform the VideoDisplay to pause.

  #### Declaration

  Swift

      func pause()

  Objective-C

      - (void)pause;

- `


  ### [-reset](https://developers.google.com/interactive-media-ads/docs/sdks/tvos/client-side/reference/Protocols/IMAVideoDisplay#/c:objc(pl)IMAVideoDisplay(im)reset)


  ` Called to remove all video assets from the player.

  #### Declaration

  Swift

      func reset()

  Objective-C

      - (void)reset;

- `


  ### [-seekStreamToTime:](https://developers.google.com/interactive-media-ads/docs/sdks/tvos/client-side/reference/Protocols/IMAVideoDisplay#/c:objc(pl)IMAVideoDisplay(im)seekStreamToTime:)


  ` Called to inform that the stream needs to be seeked to the given time.

  #### Declaration

  Swift

      func seekStream(toTime time: TimeInterval)

  Objective-C

      - (void)seekStreamToTime:(NSTimeInterval)time;

  #### Parameters

  |---|---|
  | ` time ` | the time to which the stream should be seeked |

- `


  ### [-skipCurrentInterstitialItem](https://developers.google.com/interactive-media-ads/docs/sdks/tvos/client-side/reference/Protocols/IMAVideoDisplay#/c:objc(pl)IMAVideoDisplay(im)skipCurrentInterstitialItem)


  ` Called to inform the VideoDisplay to skip the current interstitial item.

  #### Declaration

  Swift

      func skipCurrentInterstitialItem()

  Objective-C

      - (void)skipCurrentInterstitialItem;