make sure the autoplay param checks for undefined.