IOStreamRecorder
public final class IOStreamRecorder
extension IOStreamRecorder: IOStreamObserver
extension IOStreamRecorder: Running
The IOStreamRecorder class represents video and audio recorder.
-
The IOStreamRecorder error domain codes.
See moreDeclaration
Swift
public enum Error : Swift.Error -
Specifies the delegate.
Declaration
Swift
public weak var delegate: (any IOStreamRecorderDelegate)? -
Specifies the recorder settings.
Declaration
Swift
public var settings: [AVMediaType : [String : Any]] -
Specifies the file name. nil will generate a unique file name.
Declaration
Swift
public var fileName: String? -
The running indicies whether recording or not.
Declaration
Swift
public private(set) var isRunning: Atomic<Bool> { get } -
Specifies the movie fragment interval in sec. This value allows the file to be written continuously, so the file will remain even if the app crashes or is forcefully terminated. A value of 10 seconds or more is recommended.
Declaration
Swift
public var movieFragmentInterval: Double? { get set } -
Creates a new recorder.
Declaration
Swift
public init()
-
Declaration
Swift
public func startRunning() -
Declaration
Swift
public func stopRunning()