VKVideoTrimmer
public class VKVideoTrimmer : VKTrimmerProtocol
-
Suffix for output file
Declaration
Swift
public var trimmingSuffix: String
-
Output file type
Declaration
Swift
public var outputFileType: AVFileType
-
AVAssetExportSession Export preset
Declaration
Swift
public var exportPreset: String
-
Initialize trimmer with output directory for trimmed video file
Declaration
Swift
public init(withOutputDirectory directory: URL? = nil)
-
Trim videoFile to match start and end time Parameters
- videoFile: URL Path to input video file
- startTime: Double Time to start trimming
- endTime: Double Time to end trimming
Declaration
Swift
public func trim(videoFile url: URL, startTime start: Double, endTime end: Double, completion: (VKTrimmerCompletion)? = nil)