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 File:Russian national anthem at Medvedev inauguration 2008.ogg or