[front] better autoplay logic