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

Embedded video player #297

Merged
merged 2 commits into from
Dec 28, 2022
Merged

Embedded video player #297

merged 2 commits into from
Dec 28, 2022

Conversation

biolds
Copy link
Contributor

@biolds biolds commented Dec 28, 2022

This PR adds an embedded video player and a download link to videos in the media view.

1st commit fixes the handling of Django's FileField (see https://docs.djangoproject.com/en/4.1/topics/files/)
2nd commit uses Nginx X-Accel-Redirect feature to offload the video streaming (see https://www.nginx.com/resources/wiki/start/topics/examples/x-accel/#x-accel-redirect)

FileField should store a relative path, to make their "url" attribute work
@meeb
Copy link
Owner

meeb commented Dec 28, 2022

Thanks for the PR! This looks like an excellent addition and thanks for keeping it in the same code style.

@meeb meeb merged commit f9908a4 into meeb:main Dec 28, 2022
@biolds
Copy link
Contributor Author

biolds commented Dec 28, 2022

Thanks for this great project and the fast merging ! :)

@meeb
Copy link
Owner

meeb commented Dec 28, 2022

No problem. A bunch of stuff is in the slightly older Django way of doing things now so feel free to poke about if you like. This PR probably won't get released until I can fully test it as well as fix the container build so it might be a few days.

@biolds biolds deleted the embed-video branch December 28, 2022 15:36
@biolds
Copy link
Contributor Author

biolds commented Dec 28, 2022

No worries for a release, I'm running a dev version. Let me know if you find issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants