public static Webrtc.RtpParameters.Encoding ToNative(this RTCRtpEncodingParameters parameters) => new Webrtc.RtpParameters.Encoding(parameters.Rid, parameters.Active, (Java.Lang.Double)parameters.ScaleResolutionDownBy) { MaxBitrateBps = (Java.Lang.Integer)(int) parameters.MaxBitrate, MaxFramerate = (Java.Lang.Integer)(int) parameters.MaxFramerate, };
public static Webrtc.RTCRtpEncodingParameters ToNative(this RTCRtpEncodingParameters parameters) => new Webrtc.RTCRtpEncodingParameters { Rid = parameters.Rid, IsActive = parameters.Active, MaxBitrateBps = parameters.MaxBitrate, MaxFramerate = parameters.MaxFramerate, ScaleResolutionDownBy = parameters.ScaleResolutionDownBy, };
public async Task SetRtpEncodingParameters(RTCRtpEncodingParameters parameters) { if (Closed) { throw new Exception("closed"); } await OnSetRtpEncodingParametersAsync?.Invoke(this, parameters); }
public RtpEncodingParametersNative(RTCRtpEncodingParameters parameters) : base(parameters) { _parameters = parameters; }