Added basic support for autoplay