added autoplay function at video action