[PR #418] [MERGED] serve video files using the HTML5 video tag #15371

Closed
opened 2025-11-02 11:45:04 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/go-gitea/gitea/pull/418
Author: @nmandery
Created: 12/20/2016
Status: Merged
Merged: 12/20/2016
Merged by: @lunny

Base: masterHead: feature/gitea-html5-video


📝 Commits (2)

  • 47ad1fe serve video files using the HTML5 video tag
  • c9cef31 lint fix: add comment to IsVideoFile

📊 Changes

4 files changed (+12 additions, -0 deletions)

View changed files

📝 conf/locale/locale_en-US.ini (+1 -0)
📝 modules/base/tool.go (+5 -0)
📝 routers/repo/view.go (+2 -0)
📝 templates/repo/view_file.tmpl (+4 -0)

📄 Description

This pull requests adds support for video files using the HTML5 video tag. This allows viewing videos files directly in the webinterface - essentially the same way PDF files are supported.

Video files are not ideal to be managed using git, but may be stored in repositories as part of a projects documentation. This is the case in a project I am currently working on, and it helps a lot being able to preview these files directly in gitea instead of having to download and to open them in a video player. With video support in most of the current browsers (http://caniuse.com/#search=video) this seems like a helpful feature to be implemented in gitea.

I originally submited this PR to gogs (gogits/gogs#3967), in the discussion there @lunny asked me to also create this pull request to gitea.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/go-gitea/gitea/pull/418 **Author:** [@nmandery](https://github.com/nmandery) **Created:** 12/20/2016 **Status:** ✅ Merged **Merged:** 12/20/2016 **Merged by:** [@lunny](https://github.com/lunny) **Base:** `master` ← **Head:** `feature/gitea-html5-video` --- ### 📝 Commits (2) - [`47ad1fe`](https://github.com/go-gitea/gitea/commit/47ad1fe724bcd4b78ef36f508ce962b5dce9dc7e) serve video files using the HTML5 video tag - [`c9cef31`](https://github.com/go-gitea/gitea/commit/c9cef31d0bb765253cd3988200c5c86983b142d4) lint fix: add comment to IsVideoFile ### 📊 Changes **4 files changed** (+12 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `conf/locale/locale_en-US.ini` (+1 -0) 📝 `modules/base/tool.go` (+5 -0) 📝 `routers/repo/view.go` (+2 -0) 📝 `templates/repo/view_file.tmpl` (+4 -0) </details> ### 📄 Description This pull requests adds support for video files using the HTML5 video tag. This allows viewing videos files directly in the webinterface - essentially the same way PDF files are supported. Video files are not ideal to be managed using git, but may be stored in repositories as part of a projects documentation. This is the case in a project I am currently working on, and it helps a lot being able to preview these files directly in gitea instead of having to download and to open them in a video player. With video support in most of the current browsers (http://caniuse.com/#search=video) this seems like a helpful feature to be implemented in gitea. I originally submited this PR to gogs (gogits/gogs#3967), in the discussion there @lunny asked me to also create this pull request to gitea. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-11-02 11:45:04 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#15371