Contents

addMutableTrack(withMediaType:copySettingsFrom:options:)

Adds an empty track to the target movie.

Declaration

func addMutableTrack(withMediaType mediaType: AVMediaType, copySettingsFrom track: AVAssetTrack?, options: [String : Any]? = nil) -> AVMutableMovieTrack?

Parameters

  • mediaType:

    The media type for the new track.

  • track:

    An Avassettrack containing the desired track settings to be transferred. Set to nil to create a track with default settings.

  • options:

    A dictionary that contains key for specifying the movie object initialization. Currently, no keys are defined.

Return Value

An AVMutableMovieTrack object.

See Also

Managing tracks