Beispiel #1
0
 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,
 };
Beispiel #2
0
 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,
 };
Beispiel #3
0
        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;
 }