private int getSavedProgress() { if (previewMode == true) { return 0; } else { vidman = VideoManager.getInstance(); String path = videopl.getCurrentPath(Const.FILTER_VIDEO); return vidman.getFileInfo().getSavedProgress(path); } }
private void saveProgress(int progress) { if (previewMode == true) { return; } else { vidman = VideoManager.getInstance(); String path = videopl.getCurrentPath(Const.FILTER_VIDEO); String info = "progress = " + Integer.toString(progress); MmpTool.LOG_DBG(info); if (progress > 0 && progress < getDuration()) { vidman.getFileInfo().saveProgress(path, progress); } else { vidman.getFileInfo().saveProgress(path, 0); } } }