Added play function to the media player