Render previews for audio and video files
|Assignee:||Go MAEDA||% Done:|
This patch which we recently introduced at Planio uses the HTML 5
video tags to render recognized audio and video files on the attachment preview page. As fallback content (for browsers not supporting these tags yet, the previously shown 'no preview available' view is rendered.
I think it would be even better to limit the width of videos because users cannot access video controls under the video without scrolling the browser's window if the dimensions of the video is large.
Before (max-width: 100%):
After (max-width: 560px):