frontend: fix autoplay and error handling