You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have an actual preview of selected media only for images, and it shows only an icon for video/audio when is selected.
Can we please make preview for video and audio as well? It's really hard to know what media you have selected without a preview, you have to check the whole URL to make sure.
I have achieved this by using csf-override and duplicating and modifying the media.php file, if the media is a video, show
html video tag, if the media is an audio, show html audio tag, but that works only when the page is being refreshed, because there is also JS that replaces the preview src when selecting a file before the page is being saved...
We have an actual preview of selected media only for images, and it shows only an icon for video/audio when is selected.
Can we please make preview for video and audio as well? It's really hard to know what media you have selected without a preview, you have to check the whole URL to make sure.
I have achieved this by using csf-override and duplicating and modifying the media.php file, if the media is a video, show
html video tag, if the media is an audio, show html audio tag, but that works only when the page is being refreshed, because there is also JS that replaces the preview src when selecting a file before the page is being saved...
if ( $.inArray( $value.split('.').pop().toLowerCase(), ['jpg', 'jpeg', 'gif', 'png', 'svg', 'webp'] ) !== -1 ) { $preview_wrap.removeClass('hidden'); $preview_src.attr('src', $value); }
The text was updated successfully, but these errors were encountered: