@valera-rozuvan 

if (duration > 0 && videoPlayer.goToStartTime)

instead.