HKOutgoingStream

public final class HKOutgoingStream
extension HKOutgoingStream: Runner

An object that provides a stream ingest feature.

  • Declaration

    Swift

    public private(set) var isRunning: Bool { get }
  • The asynchronous sequence for audio output.

    Declaration

    Swift

    public var audioOutputStream: AsyncStream<(AVAudioBuffer, AVAudioTime)> { get }
  • Specifies the audio compression properties.

    Declaration

    Swift

    public var audioSettings: AudioCodecSettings { get set }
  • The audio input format.

    Declaration

    Swift

    public private(set) var audioInputFormat: CMFormatDescription? { get }
  • The asynchronous sequence for video output.

    Declaration

    Swift

    public var videoOutputStream: AsyncStream<CMSampleBuffer> { get }
  • Specifies the video compression properties.

    Declaration

    Swift

    public var videoSettings: VideoCodecSettings { get set }
  • Specifies the video buffering count.

    Declaration

    Swift

    public var videoInputBufferCounts: Int
  • The asynchronous sequence for video input buffer.

    Declaration

    Swift

    public var videoInputStream: AsyncStream<CMSampleBuffer> { get }
  • The video input format.

    Declaration

    Swift

    public private(set) var videoInputFormat: CMFormatDescription? { get }
  • Create a new instance.

    Declaration

    Swift

    public init()
  • Appends a sample buffer for publish.

    Declaration

    Swift

    public func append(_ sampleBuffer: CMSampleBuffer)
  • Appends a sample buffer for publish.

    Declaration

    Swift

    public func append(_ audioBuffer: AVAudioBuffer, when: AVAudioTime)
  • Appends a video buffer.

    Declaration

    Swift

    public func append(video sampleBuffer: CMSampleBuffer)

Runner