add autoplay parameter

Support autoplay parameter as suggested in #13