Skip to content
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

play audio files with html5 <audio> tag #5206

Closed
milahu opened this issue Oct 28, 2018 · 5 comments · Fixed by #5221
Closed

play audio files with html5 <audio> tag #5206

milahu opened this issue Oct 28, 2018 · 5 comments · Fixed by #5221
Labels
type/feature Completely new functionality. Can only be merged if feature freeze is not active. type/proposal The new feature has not been accepted yet but needs to be discussed first.
Milestone

Comments

@milahu
Copy link

milahu commented 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

@lunny lunny added type/proposal The new feature has not been accepted yet but needs to be discussed first. type/feature Completely new functionality. Can only be merged if feature freeze is not active. labels Oct 29, 2018
@lafriks lafriks added this to the 1.7.0 milestone Oct 30, 2018
@laoshaw
Copy link

laoshaw commented Nov 14, 2018

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

@milahu
Copy link
Author

milahu commented 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

@laoshaw
Copy link

laoshaw commented 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
Copy link

laoshaw commented 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
Copy link

laoshaw commented 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.

@go-gitea go-gitea locked and limited conversation to collaborators Nov 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type/feature Completely new functionality. Can only be merged if feature freeze is not active. type/proposal The new feature has not been accepted yet but needs to be discussed first.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants