Exemple #1
0
        private void OnPlaySynthFailed(VideoStatusInfo info)
        {
            bool isFind = false;

            if (m_player.HWnd == info.HWnd)
            {
                isFind = true;
            }


            if (!isFind)
            {
                return;
            }

            CloseBriefVideo();
            //StopBriefVideo();
            if (info.ErrorCode == DataModel.Common.APPERR_BVODS_BRIEF_OBJECT_NULL)
            {
                Common.SDKCallExceptionHandler.Handle(new SDKCallException(info.ErrorCode, IVXProtocol.GetErrorMsg(info.ErrorCode)), "摘要合成", false);
                string msg = string.Format("您设置的条件下无摘要目标,请重新设置。");
                Framework.Container.Instance.InteractionService.ShowMessageBox(msg, Framework.Environment.PROGRAM_NAME,
                                                                               System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Warning);
                PlayBriefVideo();
            }
            else
            {
                Common.SDKCallExceptionHandler.Handle(new SDKCallException(info.ErrorCode, IVXProtocol.GetErrorMsg(info.ErrorCode)), "摘要合成");
            }
            //Framework.Container.Instance.InteractionService.ShowMessageBox("摘要合成失败。", Framework.Environment.PROGRAM_NAME);
        }