Skip to content

Serve audio files using HTML5 audio tag#5221

Merged
lunny merged 3 commits into
go-gitea:masterfrom
cez81:aduio
Oct 30, 2018
Merged

Serve audio files using HTML5 audio tag#5221
lunny merged 3 commits into
go-gitea:masterfrom
cez81:aduio

Conversation

@cez81
Copy link
Copy Markdown
Contributor

@cez81 cez81 commented Oct 29, 2018

Similar to how Gitea shows video files using HTML this enables audio files.

Closes #5206

Ref: #418

Comment thread templates/repo/view_file.tmpl Outdated
<video controls src="{{EscapePound $.RawFileLink}}">
<strong>{{.i18n.Tr "repo.video_not_supported_in_browser"}}</strong>
</video>
<img src="{{EscapePound $.RawFileLink}}">
Copy link
Copy Markdown
Member

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

Copy link
Copy Markdown
Contributor Author

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

@bkcsoft bkcsoft added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Oct 29, 2018
@codecov-io
Copy link
Copy Markdown

codecov-io commented Oct 29, 2018

Codecov Report

Merging #5221 into master will decrease coverage by <.01%.
The diff coverage is 0%.

Impacted file tree graph

@@            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
Impacted Files Coverage Δ
modules/base/tool.go 74.12% <0%> (-0.41%) ⬇️
routers/repo/view.go 44.78% <0%> (-0.28%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 735b12e...d6ef30a. Read the comment docs.

@lunny lunny added the type/enhancement An improvement of existing functionality label Oct 30, 2018
@lunny lunny added this to the 1.7.0 milestone Oct 30, 2018
@bkcsoft bkcsoft added lgtm/need 1 This PR needs approval from one additional maintainer to be merged. and removed lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. labels Oct 30, 2018
@bkcsoft bkcsoft added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels Oct 30, 2018
@lunny lunny merged commit db30d6d into go-gitea:master Oct 30, 2018
@lafriks lafriks added the release/highlight Marks a PR as a highlight-worthy change for the release notes. label Oct 30, 2018
@cez81 cez81 deleted the aduio branch October 30, 2018 16:53
@go-gitea go-gitea locked and limited conversation to collaborators Nov 24, 2020
@delvh delvh removed the release/highlight Marks a PR as a highlight-worthy change for the release notes. label Oct 7, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. type/enhancement An improvement of existing functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

play audio files with html5 <audio> tag

9 participants