I am using the Media module mainly to add images to my content. I need also to add captions to those images. The idea of having custom fields – like in Content Types – it's very good but these fields are not visualized according to the settings in the Image media type settings page.
So far, I have found that this is related to a function named media_get_file_without_label() (called in media.filter.inc). So far, I am trying to replace this function call – on line 173 of media.filter.inc – with this different one:
field_attach_view('media', $media_obj, $media['view_mode'], null);
So this is not showing just the File field without label but all the fields in this object.
I am still missing some parts (for instance I would like to have this themed as an entity and not as separated ones per field and I also would like to have this custom fields in the editing window when I upload files using WYSIWYG…).
I will be glad to provide what I'm doing as patches but I would like to confirm that I am doing something usable…