MediaMixerOutput

public protocol MediaMixerOutput : AnyObject, Sendable

A delegate protocol implements to receive stream output events.

  • videoTrackId Asynchronous

    Tells the receiver to a video track id.

    Declaration

    Swift

    var videoTrackId: UInt8? { get async }
  • audioTrackId Asynchronous

    Tells the receiver to an audio track id.

    Declaration

    Swift

    var audioTrackId: UInt8? { get async }
  • Tells the receiver to a video buffer incoming.

    Declaration

    Swift

    func mixer(_ mixer: MediaMixer, didOutput sampleBuffer: CMSampleBuffer)
  • Tells the receiver to an audio buffer incoming.

    Declaration

    Swift

    func mixer(_ mixer: MediaMixer, didOutput buffer: AVAudioPCMBuffer, when: AVAudioTime)
  • Selects track id for streaming.

    Declaration

    Swift

    func selectTrack(_ id: UInt8?, mediaType: CMFormatDescription.MediaType) async