/// <summary>
 /// 主线程更新UI
 /// </summary>
 /// <param name="control"></param>
 /// <param name="action"></param>
 public void RunOnUIThread(Control control, MethodInvoker action)
 {
     UISync.Init(control);
     UISync.Execute(() => { action?.Invoke(); });
 }
 /// <summary>
 /// 设置视频视窗
 /// </summary>
 /// <param name="hwnd"></param>
 public virtual void SetHwnd(Control hwnd)
 {
     UISync.Init(hwnd);
     SetHwnd(hwnd.Handle);
 }