added play media code