FritzVisionVideo

public class FritzVisionVideo
  • The filters to apply on every frame of the video.

    Note

    filters are applied in chronological order.

    Declaration

    Swift

    public let filters: [FritzVisionImageFilter]
  • The video source.

    Declaration

    Swift

    public let player: AVPlayer
  • Factor to scale the frame rate.

    Declaration

    Swift

    public var frameRateScale: Float
  • If the video should loop when previewing.

    Declaration

    Swift

    public var loop: Bool
  • The total length of the video in seconds.

    Declaration

    Swift

    public var duration: TimeInterval { get }
  • Initializes with an AVPlayer.

    Declaration

    Swift

    public init(player: AVPlayer, applyingFilters filters: [FritzVisionImageFilter] = [])

    Parameters

    player

    the video player

    filters

    the filters to apply on the video

  • Declaration

    Swift

    public convenience init(player: AVPlayer, withFilter filter: FritzVisionImageFilter)
  • Initializes a video from an URL. URL can point to a file locally or online.

    Declaration

    Swift

    public convenience init(url: URL, applyingFilters filters: [FritzVisionImageFilter] = [])

    Parameters

    url

    location of the video

    filters

    the filters to apply on the video

  • Declaration

    Swift

    public convenience init(url: URL, withFilter filter: FritzVisionImageFilter)
  • Initializes a video from a file path. Path must conform to a URI file scheme.

    Declaration

    Swift

    public convenience init(path: String, applyingFilters filters: [FritzVisionImageFilter] = [])

    Parameters

    path

    path to the video

    filters

    the filters to apply on the video

  • Declaration

    Swift

    public convenience init(path: String, withFilter filter: FritzVisionImageFilter)
  • Appends video content to the current video.

    Declaration

    Swift

    public func stitch(with asset: AVAsset) throws

    Parameters

    asset

    the video content to append