updateThread.start();
}
private void updateControlBar() {
VLCInput vlcInput = vlcPlayer.getVLCInput();
VLCMediaState state = vlcInput.getMediaState();
boolean isValid = state == VLCMediaState.OPENING || state == VLCMediaState.BUFFERING || state == VLCMediaState.PLAYING || state == VLCMediaState.PAUSED || state == VLCMediaState.STOPPING;
if(isValid) {
int time = vlcInput.getAbsolutePosition();
int length = vlcInput.getDuration();
isValid = time >= 0 && length > 0;