VKVideoLooper

public class VKVideoLooper : NSObject, VKVideoLooperProtocol

Repeats a set of videos forever (ideally for use in a background view).

Observer contexts

  • Declaration

    Swift

    public var isPlaying: Bool

Initialization

  • Declaration

    Swift

    required public init(assets: [AVAsset])

Looper

  • Declaration

    Swift

    public func start(in layer: CALayer)
  • Declaration

    Swift

    public func setAssets(assets: [AVAsset])
  • Declaration

    Swift

    public func stop()
  • Declaration

    Swift

    public func toggle()
  • Declaration

    Swift

    public func play()
  • Declaration

    Swift

    public func pause()

Key value observing

  • Declaration

    Swift

    public override func observeValue(forKeyPath keyPath: String?, of object: Any?, change: [NSKeyValueChangeKey : Any]?, context: UnsafeMutableRawPointer?)