开发者

Random Access of Large Media Files on a Remote Web Server

开发者 https://www.devze.com 2023-03-15 06:46 出处:网络
One of our applications currently relies on mapp开发者_Python百科ed drives to access large media files (20-100MB) on the local network.

One of our applications currently relies on mapp开发者_Python百科ed 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?


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.


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.


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消