MediaMixerOutput
public protocol MediaMixerOutput : AnyObject, Sendable
A delegate protocol implements to receive stream output events.
-
videoTrackId
AsynchronousTells the receiver to a video track id.
Declaration
Swift
var videoTrackId: UInt8? { get async }
-
audioTrackId
AsynchronousTells 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)
-
selectTrack(_:
AsynchronousmediaType: ) Selects track id for streaming.
Declaration
Swift
func selectTrack(_ id: UInt8?, mediaType: CMFormatDescription.MediaType) async