Instance Method

setVideoGravity(_:)

Sets the resizing behavior for the movie content.

Declaration

func setVideoGravity(_ videoGravity: WKVideoGravity)

Parameters

videoGravity

The resizing option for the movie. For a list of possible values, see the WKVideoGravity type.

See Also

Setting the Movie Attributes

func setMovieURL(URL)

Sets the URL of the movie to play.

func setPosterImage(WKImage?)

Sets the poster image to display for the movie.

func setLoops(Bool)

Sets a Boolean value indicating whether the movie plays in a continuous loop.