added custom fields for the media edit form so users can select a thumbnail for video. All that's working fine but how can i get the default video icon on this page and in the media library to use this thumb instead of the default video icon?
default is http://sandbox.modernactivity.co.uk/waspface_wp/wp-includes/images/crystal/video.png
update got part of the way but not sure how i grab a custom field in this situation...
function change_mime_icon($icon, $mime = null, $post){
$thumb = get_post_meta($post->ID,'_videoThumb', true); // needs to be attachment id?
if($thumb){ // videoThumb
$icon = str_replace(get_bloginfo('wpurl').'/wp-includes/images/crystal/', WP_CONTENT_URL . '/uploads/'.$thumb, $icon);
return $icon;
}else{
//leave as is...
}
}