Moved autoplay methods to separate class