If you try to play a video or audio file and don't have the appropriate codec installed, a window pops up and asks if you want to install it. As soon as the installation is complete, the file you were trying to watch can be played. It's as simple as that.
Windows and Mac OS don't have this sort of awesomeness, as far as I know. Ubuntu now means multimedia for human beings.