Added play, pause, and autoplay functionality.