public static string ToSdpValue(this SendReceiveMode sendReceiveMode) { return(sendReceiveMode switch { SendReceiveMode.SendRecv => "sendrecv", SendReceiveMode.SendOnly => "sendonly", SendReceiveMode.RecvOnly => "recvonly", SendReceiveMode.Inactive => "inactive", _ => null });
public SdpMediaDescriptionBuilder SetSendReceiveMode(SendReceiveMode sendReceiveMode) { _sdpMediaDescription.SendReceiveMode = sendReceiveMode; return(this); }