Exemplo n.º 1
0
        /// <summary>
        /// 实时设置视频发送帧率上限
        /// </summary>
        /// <param name="frame_rate">帧率类型 见NIMVChatVideoFrameRate定义</param>
        /// <param name="json_extension">json_extension  无效备用</param>
        /// <param name="cb">cb 结果回调</param>
        /// <returns>无返回值</returns>
        public static void SetFrameRate(NIMVChatVideoFrameRate frame_rate, string json_extension, NIMVChatOptHandler cb)
        {
            var ptr = NimUtility.DelegateConverter.ConvertToIntPtr(cb);

            VChatNativeMethods.nim_vchat_set_frame_rate(frame_rate, json_extension, VChatNormalOptCb, ptr);
        }
Exemplo n.º 2
0
 internal static extern void nim_vchat_set_frame_rate(NIMVChatVideoFrameRate frame_rate,
                                                      [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef = typeof(NimUtility.Utf8StringMarshaler))] string json_extension,
                                                      NimVchatOptCbFunc cb,
                                                      IntPtr user_data);