示例#1
0
        public static PlayTime extractPlayTime(String filePath)
        {
            VideoFileReader videoFileReader = new VideoFileReader(filePath);

            PlayTime playTime = extractPlayTime(videoFileReader);

            videoFileReader.dispose();
            videoFileReader = null;
            return(playTime);
        }
示例#2
0
        public static float getRecordingQuality(String filePath)
        {
            VideoFileReader videoFileReader = new VideoFileReader(filePath);

            float quality = getRecordingQuality(videoFileReader);

            videoFileReader.dispose();
            videoFileReader = null;
            return(quality);
        }
示例#3
0
        public static PlayTime extractPlayTime(VideoFileReader videoFileReader)
        {
            float frameTime            = 1000 / videoFileReader.videoFileMetaData.targetFramerate;
            long  playTimeMilliseconds = (long)((long)frameTime * videoFileReader.videoFileMetaData.frameCount);
            int   playtimeSeconds      = (int)(playTimeMilliseconds / 1000);
            int   playtimeMinutes      = (int)(playtimeSeconds / 60);

            playtimeSeconds = (int)(playtimeSeconds % 60);

            return(new PlayTime(playtimeMinutes, playtimeSeconds));
        }
示例#4
0
 public static float getRecordingQuality(VideoFileReader videoFileReader)
 {
     return(videoFileReader.videoFileMetaData.recordingQuality);
 }