RTCRtpTransceiverInit constructor

RTCRtpTransceiverInit({
  1. RTCRtpTransceiverDirection? direction,
  2. Iterable<MediaStream>? streams,
  3. Iterable<RTCRtpEncodingParameters>? sendEncodings,
})

Implementation

factory RTCRtpTransceiverInit(
        {RTCRtpTransceiverDirection? direction,
        Iterable<MediaStream>? streams,
        Iterable<RTCRtpEncodingParameters>? sendEncodings}) =>
    RTCRtpTransceiverInit._(
        direction:
            direction?.value ?? RTCRtpTransceiverDirection.sendrecv.value,
        streams: streams ?? const [],
        sendEncodings: sendEncodings ?? const []);