分享/存储视频
我需要一种方法来显示视频网格,如果您将鼠标悬停在其中一个视频上,它将显示 3 秒的预览。这些都是使用 C# 和 SQL Server 2008 在 ASP.Net 中编写的。
我必须问自己的问题 -
- 这些将存储在数据库中还是文件系统中?
- 如何展示这些视频? - 这是简单的部分,只是寻求意见。
任何帮助将不胜感激。
I need a way to show a grid of videos, where if you hover over one, it will show a 3 second preview. This is all written in ASP.Net using C# and SQL Server 2008.
Questions I have to ask myself -
- Would these be stored in a database or on the file system?
- How to show these videos? - this is the easy part, just looking for opinions.
Any help would be greatly appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
存储:该决定涉及很多方面。许多人会说将文件放在文件系统上,但这取决于您是否想要轻松进行灾难恢复、如何扩展、您的文件系统或数据库是否支持更好的缓存等。
如何显示视频:< /strong> 如果您的 UI 使用 Flash,那可能是最简单的。如果没有,您可能需要生成一个包含 3 秒视频的 GIF 作为每个视频的预览,然后当光标悬停在静止缩略图上时动态加载。
Storage: there are so many aspects to that decision. Many will say to put the files on the file system but then again that depends on whether you want easy disaster recovery, how you scale, whether your file system or DB supports better caching, etc.
How to show the videos: If your UI is in Flash, that's probably the easiest. If not, you'd probably need to generate a GIF with 3 seconds of video as a preview for each video, which you then load dynamically when the cursor hovers over the still thumbnail.