modified the service for media player.