# GoogleMobileAds Framework Reference

# GADMediaContent


    @interface GADMediaContent : NSObject

Provides media content information. Interact with instances of this class on the main queue
only.
- `


  ### [videoController](https://developers.google.com/admob/ios/api/reference/Classes/GADMediaContent#/c:objc(cs)GADMediaContent(py)videoController)


  ` Controls the media content's video.

  #### Declaration

  Swift

      var videoController: VideoController { get }

  Objective-C

      @property (nonatomic, readonly, nonnull) https://developers.google.com/admob/ios/api/reference/Classes/GADVideoController.html *videoController;

- `


  ### [hasVideoContent](https://developers.google.com/admob/ios/api/reference/Classes/GADMediaContent#/c:objc(cs)GADMediaContent(py)hasVideoContent)


  ` Indicates whether the media content has video content.

  #### Declaration

  Swift

      var hasVideoContent: Bool { get }

  Objective-C

      @property (nonatomic, readonly) BOOL hasVideoContent;

- `


  ### [aspectRatio](https://developers.google.com/admob/ios/api/reference/Classes/GADMediaContent#/c:objc(cs)GADMediaContent(py)aspectRatio)


  ` Media content aspect ratio (width/height). The value is 0 when there's no media content or the
  media content aspect ratio is unknown.

  #### Declaration

  Swift

      var aspectRatio: CGFloat { get }

  Objective-C

      @property (nonatomic, readonly) CGFloat aspectRatio;

- `


  ### [duration](https://developers.google.com/admob/ios/api/reference/Classes/GADMediaContent#/c:objc(cs)GADMediaContent(py)duration)


  ` The video's duration in seconds or 0 if there's no video or the duration is unknown.

  #### Declaration

  Swift

      var duration: TimeInterval { get }

  Objective-C

      @property (nonatomic, readonly) NSTimeInterval duration;

- `


  ### [currentTime](https://developers.google.com/admob/ios/api/reference/Classes/GADMediaContent#/c:objc(cs)GADMediaContent(py)currentTime)


  ` The video's current playback time in seconds or 0 if there's no video or the current playback
  time is unknown.

  #### Declaration

  Swift

      var currentTime: TimeInterval { get }

  Objective-C

      @property (nonatomic, readonly) NSTimeInterval currentTime;

[## NativeAd](https://developers.google.com/admob/ios/api/reference/Classes/GADMediaContent#/NativeAd)

- `


  ### [mainImage](https://developers.google.com/admob/ios/api/reference/Classes/GADMediaContent#/c:objc(cs)GADMediaContent(py)mainImage)


  ` The main image to be displayed when the media content doesn't contain video. Only available to
  native ads.

  #### Declaration

  Swift

      var mainImage: UIImage? { get set }

  Objective-C

      @property (nonatomic, nullable) UIImage *mainImage;