TSReader

public final class TSReader

A class represents that reads MPEG-2 transport stream data.

  • An asynchronous sequence for reading data.

    Declaration

    Swift

    public var output: AsyncStream<(UInt16, CMSampleBuffer)> { get }
  • Create a new instance.

    Declaration

    Swift

    public init()
  • Reads transport-stream data.

    Declaration

    Swift

    public func read(_ data: Data) -> Int
  • Clears the reader object for new transport stream.

    Declaration

    Swift

    public func clear()