Implement autoplay.