Example #1
0
        protected void OnXFCardLocationEvent(double angle)
        {
            if (XFCardLocationEvent != null)
            {
                XFSpeakerLocationEventArgs obj = new XFSpeakerLocationEventArgs();
                obj.Angle = angle;

                XFCardLocationEvent(this, obj);
            }
        }
Example #2
0
        void XfJsonResolver_XFCardLocationEvent(object sender, XFSpeakerLocationEventArgs args)
        {
            if (SuperObject.Config.EnabledCloseVideoPlayerWithVoice)
            {
                //关闭视频播放器(如果有的话)
                CloseVideoPlayer();
            }

            //保存说话的角度
            MainService.TaskService.Request(TaskActionType.Angle, args.Angle);
        }