TSWriter
public final class TSWriter<T> where T : TSWriterDelegate
The TSWriter class represents writes MPEG-2 transport stream data.
-
The delegate instance.
Declaration
Swift
public weak var delegate: T? -
The exptected medias = [.video, .audio].
Declaration
Swift
public var expectedMedias: Set<AVMediaType> -
Undocumented
Declaration
Swift
public var audioFormat: AVAudioFormat? { get set } -
Undocumented
Declaration
Swift
public var videoFormat: CMFormatDescription? { get set } -
Undocumented
Declaration
Swift
public init(segmentDuration: Double = 2.0) -
Appends a buffer.
Declaration
Swift
public func append(_ audioBuffer: AVAudioBuffer, when: AVAudioTime) -
Appends a buffer.
Declaration
Swift
public func append(_ sampleBuffer: CMSampleBuffer) -
Clears the reader object for new transport stream.
Declaration
Swift
public func clear()
TSWriter Class Reference