-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Serve audio files using HTML5 audio tag #5221
Conversation
templates/repo/view_file.tmpl
Outdated
@@ -55,6 +55,11 @@ | |||
<video controls src="{{EscapePound $.RawFileLink}}"> | |||
<strong>{{.i18n.Tr "repo.video_not_supported_in_browser"}}</strong> | |||
</video> | |||
<img src="{{EscapePound $.RawFileLink}}"> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why image tag? This would create a video tag, followed immediately by image tag
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops thanks, copy paste error
Codecov Report
@@ Coverage Diff @@
## master #5221 +/- ##
==========================================
- Coverage 37.49% 37.49% -0.01%
==========================================
Files 309 309
Lines 45827 45831 +4
==========================================
Hits 17185 17185
- Misses 26179 26183 +4
Partials 2463 2463
Continue to review full report at Codecov.
|
Similar to how Gitea shows video files using HTML this enables audio files.
Closes #5206
Ref: #418