Closed Noah1991 closed 4 years ago
将MAX_COUNT_RANGE设置为VIDEO_MAX_TIME后,可以规避这个问题,但是出现个新问题,seekbar显示的时长比真实时长差1秒。 还有就是以上问题我是用30秒以上的视频测试的
将 public static final int THUMB_WIDTH = (SCREEN_WIDTH_FULL - RECYCLER_VIEW_PADDING 2) / VIDEO_MAX_TIME; 改为 public static final int THUMB_WIDTH = (SCREEN_WIDTH_FULL - RECYCLER_VIEW_PADDING 2) / MAX_COUNT_RANGE; 后正常了
@Noah1991 thanks,
for everyone wants to change VIDEO_MAX_TIME
just change public static final int THUMB_WIDTH = (SCREEN_WIDTH_FULL - RECYCLER_VIEW_PADDING * 2) / MAX_COUNT_RANGE;
等VIDEO_MAX_TIME不等于10的时候,裁剪时,底部seekbar所显示的视频时长不正确。