/// <summary>
        ///
        /// </summary>
        /// <param name="connectionId"></param>
        /// <param name="bitrate"></param>
        /// <param name="framerate"></param>
        public void ChangeVideoParameters(string connectionId, ulong?bitrate, uint?framerate)
        {
            if (!Senders.TryGetValue(connectionId, out var sender))
            {
                return;
            }
            RTCRtpSendParameters parameters = sender.GetParameters();

            foreach (var encoding in parameters.encodings)
            {
                if (bitrate != null)
                {
                    encoding.maxBitrate = bitrate;
                }
                if (framerate != null)
                {
                    encoding.maxFramerate = framerate;
                }
            }
            sender.SetParameters(parameters);
        }