play audio files with html5 <audio> tag #2462

Closed
opened 2025-11-02 04:37:09 -06:00 by GiteaMirror · 5 comments
Owner

Originally created by @milahu on GitHub (Oct 28, 2018).

im abusing gitea for file hosting

gitea does already play mp4 video files
and aac / mp3 audio in mp4 containers
via the html5 <video> tag

please make gitea also play audio files
like opus, vorbis, aac, mp3, flac, wav
using the html5 <audio> tag

[lets just ignore webm, weba, etc
h.264 and opus are my codecs of choice]

see here
https://tools.woolyss.com/html5-audio-video-tester/
for browser support

Originally created by @milahu on GitHub (Oct 28, 2018). im abusing gitea for file hosting gitea does already play mp4 video files and aac / mp3 audio in mp4 containers via the html5 &lt;video&gt; tag please make gitea also play audio files like opus, vorbis, aac, mp3, flac, wav using the html5 &lt;audio&gt; tag [lets just ignore webm, weba, etc h.264 and opus are my codecs of choice] see here https://tools.woolyss.com/html5-audio-video-tester/ for browser support
GiteaMirror added the type/featuretype/proposal labels 2025-11-02 04:37:09 -06:00
Author
Owner

@laoshaw commented on GitHub (Nov 14, 2018):

how does video tag work? my video tag inside the markdown was ignored, can you give an example?

@laoshaw commented on GitHub (Nov 14, 2018): how does video tag work? my video tag inside the markdown was ignored, can you give an example?
Author
Owner

@milahu commented on GitHub (Nov 22, 2018):

@laoshaw i was not talking about embedding video in markdown

when you upload an mp4 video to gitea
and open the 'src' page for that file
gitea will render the video with the html5 video tag

the 'raw' page will download the video file

@milahu commented on GitHub (Nov 22, 2018): @laoshaw i was not talking about embedding video in markdown when you upload an mp4 video to gitea and open the 'src' page for that file gitea will render the video with the html5 video tag the 'raw' page will download the video file
Author
Owner

@laoshaw commented on GitHub (Dec 2, 2018):

@milahu what do you mean by 'open the src page for that file'? I uploaded a few mp4 and would like to play it out of the typical markdown pages at gitea

@laoshaw commented on GitHub (Dec 2, 2018): @milahu what do you mean by 'open the src page for that file'? I uploaded a few mp4 and would like to play it out of the typical markdown pages at gitea
Author
Owner

@laoshaw commented on GitHub (Dec 2, 2018):

[![Test embedded video with image button](./small.jpg)](./small.mp4) I can do this to play the video but I need click twice, basically I need a button-img and click on that button(which is a picture) and it will play the video immediately.

@laoshaw commented on GitHub (Dec 2, 2018): `[![Test embedded video with image button](./small.jpg)](./small.mp4)` I can do this to play the video but I need click twice, basically I need a button-img and click on that button(which is a picture) and it will play the video immediately.
Author
Owner

@laoshaw commented on GitHub (Dec 2, 2018):

the a-href works for mp4 files, what I'm really trying to see if the video tag works in gitea, e.g. in a markdown I can do something like:

<video style="width:100%" controls><source src="small.mp4" type="video/mp4">Your browser does not support the video tag.</video>

is this possible at all? tried a while it never worked, no video is shown, in fact in the rendor html page all the video tags and sections are removed, it's like gitea's parser removed any video tags in the markdown file before converting markdown to html for view.

@laoshaw commented on GitHub (Dec 2, 2018): the a-href works for mp4 files, what I'm really trying to see if the video tag works in gitea, e.g. in a markdown I can do something like: `<video style="width:100%" controls><source src="small.mp4" type="video/mp4">Your browser does not support the video tag.</video>` is this possible at all? tried a while it never worked, no video is shown, in fact in the rendor html page all the video tags and sections are removed, it's like gitea's parser removed any video tags in the markdown file before converting markdown to html for view.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#2462