我应该如何构建视频流网络应用程序?

发布于 2024-09-14 07:16:44 字数 244 浏览 3 评论 0原文

我希望用户能够创建帐户并将视频上传到网站。

我应该如何构建这个网络应用程序,我应该如何开始考虑这个项目,我应该如何存储视频,以及你会为这个项目推荐什么堆栈?前端、服务器、数据库应该如何思考?

越详细越好!另外,人们可能给我或指出我的任何代码将不胜感激。我正在寻找以下内容的代码:

用户帐户 上传视频 存储视频 上传时对视频进行分类 以缩略图形式显示视频 我可能没有想到一些事情,所以我忘记了什么,请告诉我!请记住,越详细越好!

I want a user to be able to create an account and upload a video to the site.

How should I structure this web app, how should I start thinking about the project, how should I store the videos, and what stack would you recommend for this project? How should I think about the front-end, the server, and the database?

The more detail, the better! Also, any code that people might give me or point me to would be greatly appreciated. I'm looking for code for the following:

user accounts
uploading videos
storing videos
categorizing the videos upon upload
displaying videos in thumbnail form
I'm probably not thinking of some things, so anything I'm forgetting, please let me know! And remember, the more detail the better!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

沐歌 2024-09-21 07:16:45

我首先将其分解为更易于管理的块。

您要求提供以下内容的代码示例用户帐户,但列出的框架提供了有用的教程(Django塔架App Engine)了解基础知识。如果您无法将教程中的概念从各自的示例应用到管理用户帐户的系统中,我建议您先阅读一下数据库设计和体系结构。

至于你应该如何考虑前端、数据库等,这又取决于你选择使用的 Web 框架。他们都有自己的惯例,遵守这些惯例会让您受益匪浅。

我的一般建议是您选择一个 Web 框架,然后阅读其各种教程和用户指南。您将学到很多关于框架如何构建其文件、如何优选(或强制)构建其数据库等的知识。在此过程中,您将了解许多您要求的示例内容— 视频分类、图像与视频的关联等。

因为有很多不同的选项可供您使用,所以仅提供一些代码示例来完成您所要求的一些操作是非常困难的。该代码必须附带一系列先决条件,并且只会降低您评估各种选择并选择您认为最适合您的选择的能力。

I'd start by breaking it down into more manageable chunks.

You've asked for code samples of things like user accounts, but the frameworks listed provide helpful tutorials (Django, Pylons, App Engine) for the basics. If you are unable to adapt the concepts in their tutorials from their respective examples to a system for managing user accounts, I would suggest reading up on database design and architecture a bit first.

As for how you should think about the front-end, database, etc., that again tends to rely on the web framework you choose to go with. They all have their own conventions that you'll benefit from by adhering to.

My general suggestion would be for you to pick a web framework, then go through its various tutorials and user guides. You'll learn a lot about how the framework structures its files, how it prefers (or forces) its databases to be structured, etc. In doing so, you'll learn about a lot of the things you've asked for examples of — video categorization, relating images to videos, and so forth.

Because there are so many different options for you to go with, it is extremely hard to just provide a few samples of code that do some of the things you've asked for. The code would have to come with a list of pre-requisites, and would only lessen your ability to evaluate the various choices and pick the one that you feel will work best for you.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文