resize video and add autoplay