/// <summary> /// 指定码流回调函数 /// </summary> /// <param name="videoDataCallBack"></param> /// <param name="sender"></param> public void SetDataCallBackFunc(RealDataCallBackFunc dataCallBack) { NLogEx.LoggerEx logEx = new NLogEx.LoggerEx(log); logEx.Trace("Enter: TiandySdkClient.SetDataCallBackFunc()."); this.cgwRealDataCallBackFunc = dataCallBack; this.sdkRealDataCallBackFunc = CallbackFunc; logEx.Trace("TiandySdkClient SetDataCallBackFunc success."); }
private static extern bool client_sdk_set_h264_callback(int playfd, RealDataCallBackFunc func, int usr);
private static extern int client_sdk_realplay2_ex(string dev_id, string username, string password, string client_sup_id, string dev_sup_id, string client_sup_ip, int client_sup_port, ref RealPlayInfo info, RealDataCallBackFunc func, int usr);
private static extern bool client_sdk_set_realdata_callback(int playfd, RealDataCallBackFunc func, int usr);