add autoPlay attribute