You can implement a control bar with DVR support for VOD and live streaming. DVR support includes the concept of a seekable window and the client live point.
The client live point is calculated by subtracting the buffered length and three times the target duration from the live window end. The target duration is a value bigger than or equal to the maximum duration of a fragment in the manifest; the default value is 10000 ms. The control bar for live playback supports DVR by first positioning the thumb at the client live point when starting playback and by displaying a region that marks the area where seek is not allowed.

TimeRange seekableRange = _mediaPlayer.getSeekableRange();
if (seekableRange.contains(desiredSeekPosition)) {
_mediaPlayer.seek(desiredPosition);
}
mediaPlayer.seek(MediaPlayer.LIVE_POINT);