Added play media functionality