Vote #78909
完了Render previews for audio and video files
0%
説明
This patch which we recently introduced at "Planio":https://plan.io/redmine-hosting uses the HTML 5 @audio@ and @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.
journals
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
It is really nice improvement. Setting target version to 4.1.0.
--------------------------------------------------------------------------------
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%):*
!{border: 1px solid #ccc;}.27336-max-width-100percent.jpg!
*After (max-width: 560px):*
!{border: 1px solid #ccc;}.27336-max-width-560px.jpg!
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
Committed. Thank you for sharing your work.
--------------------------------------------------------------------------------
Hello. Could you adapt your patch for redmine 3.3.8?
--------------------------------------------------------------------------------
--------------------------------------------------------------------------------
related_issues
relates,Needs feedback,22483,Show PDF attachments and repo entries instead of downloading them
relates,Closed,10138,Video Player
relates,Closed,22112,add html5 audio controls if attachment is mp3
relates,Closed,32153,Repository browser does not render previews for audio/video files