Thread:Project:Support desk/Custom Description Page depending on uploaded file MIME type

I would like to have embedded players on Description pages for video files (in my case I have linked FlowPlayer extension), pdf viewers for pdf-files, djvu viewers for djvu-files, audio player for mp3 and etc. I would like to learn how to realize something like described here w:en:Help:File_page about video and other multimedia such as http://www.mediawiki.org/wiki/File:Russian_national_anthem_at_Medvedev_inauguration_2008.ogg or