远程 Web 服务器上大型媒体文件的随机访问

发布于 2024-11-17 17:16:09 字数 284 浏览 4 评论 0原文

我们的应用程序之一当前依赖映射驱动器来访问本地网络上的大型媒体文件 (20-100MB)。

我们希望将其更改为某种 Web 服务,以便我们可以使其更加安全并将其移动到 Web 服务器(不依赖于本地网络)。

因为它们是大型媒体文件,所以我们需要随机访问这些文件(以便我们可以从任意点开始视频)。

我们有许多不同类型的媒体文件(MPEG、WMV、MOV、AVI 等),并且不想为此目的将它们编码为特定格式。我们更愿意支持一种允许我们访问文件的技术,就像它是本地文件一样。

我们应该使用什么技术?

One of our applications currently relies on mapped drives to access large media files (20-100MB) on the local network.

We would like to change this to some sort of web service so that we can make it more secure and move it to a web server (not relying on a local network).

Because they are large media files, we need to be have random access to the files (so that we can start videos from any point).

We have many different types of media files (MPEG, WMV, MOV, AVI, etc...) and would rather not encode them to a specific format for this purpose. We would much rather favor a technology that would allow us to access the file, as if it were a local file.

What technology should we use?

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

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

发布评论

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

评论(3

初见你 2024-11-24 17:16:09

HTTP 本身已经支持这一点。但是,您的客户需要知道如何支持它。 Content-Range 标头指定要请求的范围,Content-Length 标头了解大小。

如果您需要它作为“服务”,您也可以使用 WebDAV,它提供允许您访问文件系统的语义。还有一个 WebDAV Servlet 实现,您可以将其用作起始基础。

HTTP already supports this natively. However, your clients need to know how to support it. It is the Content-Range header to specify the range to be requested and Content-Length to know the size.

If you need it as a "service" you can use WebDAV as well which provides semantics that would allow you to access a file system. There's a WebDAV Servlet implementation as well which you can use as a starting basis.

梦中楼上月下 2024-11-24 17:16:09

也许您只需要 HTTP 渐进式下载。您列出了可以包含几乎任意流格式的媒体容器。在任何情况下,您都可以尝试使用 VLC 或其他支持渐进式下载的通用播放器,很可能它们可以播放您的文件。

probably you just need HTTP progressive download. You listed media containers that can contain almost arbitrary stream formats. In any case you can try to use VLC or another universal player that supports progressive download, most probably they can play your files.

梦回梦里 2024-11-24 17:16:09

使用Java

为了保护访问 - 在任何 Web 服务堆栈中公开文件存储的身份验证/授权逻辑。例如 axis 、 Metro 。

Java确实有RandomAccessFile,它可以查看和寻找任何点,但我不确定你是否真的需要这个。

您现有的应用程序必须为此构建一些消费机制。

Use Java.

For securing the access - expose your authentication / authorization logic for the file store in any web service stack. for example axis , metro.

Java does have RandomAccessFile which can peek and seek to any point, but am not sure you really require this.

You existing application will have to have build some consumption mechanism for this.

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