Books first. I was reading Edgar Rice Burroughs, Robert E. Howard, J.R.R. Tolkien, Lloyd Alexander, etc. long before I thought of playing D&D.
I think that's still one of my prime dissatisfactions with D&D today, as a matter of fact, that it feels very little like those seminal writings, despite a superficial similarity.