Esempio n. 1
0
 /// <summary>
 /// 开始录像
 /// </summary>
 /// <param name="vrSet"></param>
 /// <returns></returns>
 public bool StartVideoRecord(VideoRecordSet vrSet)
 {
     CurrentVideoPlaySet.VideoRecordEnable             = vrSet.Enable;
     CurrentVideoPlaySet.VideoRecordFilePath           = vrSet.VideoRecordFilePath;
     CurrentVideoPlaySet.VideoRecordFileName           = vrSet.VideoRecordFileName;
     CurrentVideoPlaySet.VideoRecordFilePath_Server    = vrSet.VideoRecordFilePath_Server;
     CurrentVideoPlaySet.VideoRecordFileName_Server    = vrSet.VideoRecordFileName_Server;
     CurrentVideoPlaySet.TimeOutVideoRecordCloseSecond = vrSet.TimeOutVideoRecordCloseSecond;
     if (!string.IsNullOrEmpty(CurrentVideoPlaySet.VideoRecordFilePath) &&
         (!Directory.Exists(CurrentVideoPlaySet.VideoRecordFilePath)))
     {
         Directory.CreateDirectory(CurrentVideoPlaySet.VideoRecordFilePath);
     }
     return(iv.StartVideoRecord(vrSet));
 }
Esempio n. 2
0
        /// <summary>
        /// 开始录像
        /// </summary>
        /// <param name="vrSet"></param>
        /// <returns></returns>
        public bool StartVideoRecord(VideoRecordSet vrSet)
        {
            bool bolResult = true;

            CurrentVideoPlaySet.VideoRecordEnable             = vrSet.Enable;
            CurrentVideoPlaySet.VideoRecordFilePath           = vrSet.VideoRecordFilePath;
            CurrentVideoPlaySet.VideoRecordFileName           = vrSet.VideoRecordFileName;
            CurrentVideoPlaySet.VideoRecordFilePath_Server    = vrSet.VideoRecordFilePath_Server;
            CurrentVideoPlaySet.VideoRecordFileName_Server    = vrSet.VideoRecordFileName_Server;
            CurrentVideoPlaySet.TimeOutVideoRecordCloseSecond = vrSet.TimeOutVideoRecordCloseSecond;
            //关闭视频
            VideoClose();
            //打开视频
            VideoPlay();
            return(bolResult);
        }
 /// <summary>
 /// 开始录像
 /// </summary>
 /// <param name="vrSet"></param>
 /// <returns></returns>
 public virtual bool StartVideoRecord(VideoRecordSet vrSet)
 {
     return(false);
 }