1. A method, comprising: accessing, by a media player, data defining a plurality of elements of a media presentation; selecting an element of the media presentation for use in generating behavior of the media player, the selected element having a parameter different from at least one other element in the plurality of elements; determining a trait corresponding to the selected element; and based on the determined trait, identifying a functional component of the media player to generate media player behavior using the selected element based on a mapping of one or more traits to one or more functional components, the mapping indicating that the determined trait corresponds to the identified functional component.