public static PlayTime extractPlayTime(String filePath) { VideoFileReader videoFileReader = new VideoFileReader(filePath); PlayTime playTime = extractPlayTime(videoFileReader); videoFileReader.dispose(); videoFileReader = null; return(playTime); }
public static float getRecordingQuality(String filePath) { VideoFileReader videoFileReader = new VideoFileReader(filePath); float quality = getRecordingQuality(videoFileReader); videoFileReader.dispose(); videoFileReader = null; return(quality); }
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)); }
public static float getRecordingQuality(VideoFileReader videoFileReader) { return(videoFileReader.videoFileMetaData.recordingQuality); }