private void showPreview(int position) { if (mMediaInfo.getUri() == null || mMediaInfo.getUri().getString().isEmpty()) { return; } int seekTo = percentToPosition(position); mVideoPosition = seekTo / 1000; mVideoView.seekTo((int) mVideoPosition); }
public void enableSegmentPicker(boolean enable) { mEnableSegmentPicker = enable; int visibility = enable ? View.VISIBLE : View.INVISIBLE; if (mMediaInfo.getUri() != null) { mSegmentSelector.setVisibility(visibility); } }
public void updateView() { if (mVideoView != null && mMediaInfo.getUri() != null) { int position = (int) mVideoPosition; mVideoView.seekTo(position); } }
public com.intel.inde.mp.Uri getUri() { return mMediaInfo.getUri(); }