Instance Property

naturalSize

The width and height of the movie frame.

Declaration

var naturalSize: CGSize { get }

Discussion

This property reports the clean aperture of the video in square pixels. Thus, the reported dimensions take into account anamorphic content and aperture modes.

It is possible for the natural size of a movie to change during playback. This typically happens when the bit-rate of streaming content changes or when playback toggles between audio-only and a combination of audio and video.

See Also

Accessing Movie Properties

var contentURL: URL!

The URL that points to the movie file.

Deprecated
var movieSourceType: MPMovieSourceType

The playback type of the movie.

Deprecated
var movieMediaTypes: MPMovieMediaTypeMask

The types of media available in the movie.

Deprecated
var allowsAirPlay: Bool

Specifies whether the movie player allows AirPlay movie playback.

Deprecated
var isAirPlayVideoActive: Bool

Indicates whether the movie player is currently playing video via AirPlay.

Deprecated
var isFullscreen: Bool

A Boolean that indicates whether the movie player is in full-screen mode.

Deprecated
func setFullscreen(Bool, animated: Bool)

Causes the movie player to enter or exit full-screen mode.

Deprecated
var scalingMode: MPMovieScalingMode

The scaling mode to use when displaying the movie.

Deprecated
var controlStyle: MPMovieControlStyle

The style of the playback controls.

Deprecated
var useApplicationAudioSession: Bool

A Boolean value that indicates whether the movie player should use the app’s audio session.

Deprecated