Refactored MediaPlayer creation to support singleton usage.