Example #1
0
        /// <summary>
        /// Reason : To get Video file details
        /// </summary>
        /// <param name="fileInputObj">Accepts input object of VideoFileInput</param>
        /// <returns>object of VideoContent</returns>
        public VideoContent GetVideoDetails(VideoFileDetail fileInputObj)
        {
            try
            {
                VideoContent      videoContent = new VideoContent();
                List <ColorModel> colorList = new List <ColorModel>();
                string            contentMessage = ""; string videoInfo = ""; string audioMessage = "";
                _videoGrab.GetVideoDetails(fileInputObj.ApplicationStartupPath, fileInputObj.OutputImagePath, fileInputObj.InputFilePath, fileInputObj.BatchFilePath, Guid.NewGuid().ToString(), ref contentMessage, ref colorList, ref videoInfo, ref audioMessage);

                videoContent.AudioMessage   = audioMessage;
                videoContent.ContentMessage = contentMessage;
                videoContent.VideoInfo      = videoInfo;
                videoContent.ColorList      = PrepareColorModel(colorList);
                return(videoContent);
            }
            catch (Exception)
            {
                throw;
            }
        }
        /// <summary>
        /// Reason : To get Video file details
        /// </summary>
        /// <param name="fileInputObj">Accepts input object of VideoFileInput</param>
        /// <returns>object of VideoContent</returns>
        public VideoContent GetVideoDetails(VideoFileDetail fileInputObj)
        {
            try
            {
                VideoContent videoContent = new VideoContent();
                List<ColorModel> colorList = new List<ColorModel>();
                string contentMessage = ""; string videoInfo = ""; string audioMessage = "";
                _videoGrab.GetVideoDetails(fileInputObj.ApplicationStartupPath, fileInputObj.OutputImagePath, fileInputObj.InputFilePath, fileInputObj.BatchFilePath, Guid.NewGuid().ToString(), ref contentMessage, ref colorList, ref videoInfo, ref audioMessage);

                videoContent.AudioMessage = audioMessage;
                videoContent.ContentMessage = contentMessage;
                videoContent.VideoInfo = videoInfo;
                videoContent.ColorList = PrepareColorModel(colorList);
                return videoContent;
            }
            catch (Exception)
            {
                throw;
            }
        }