improved code for videos (restrict to 3 mimetypes, removed codec info from type attribute)