cancel
Showing results for 
Search instead for 
Did you mean: 

Get content starting from certain offset ( videostreaming )

ksapenov
Champ in-the-making
Champ in-the-making
Hi,
Currently I develop videostreaming solution (for videoarchive company), based on alfresco repo service and need to implement 'seek' functionality for the media player. At the moment it works out of the box upon initial request of the file. However once user requests another part of the video, I need to have same file from certain offset. Client side implements HTTP 1.1 Byte Ranges requests. Files are of variable size: 30Mb to 700Mb.
Should I modify existing downloadContent servlet or write another one say 'streamingServlet' ?
Any help appreciated.

regards,

Khaz Sapenov
Enomaly
2 REPLIES 2

derek
Star Contributor
Star Contributor
Hi,

You could put additional, optional parameters on the request to the download content servlet.

The ContentReader provides a getFileChannel for random access to the underlying content.

Regards

kevinr
Star Contributor
Star Contributor
If you do this, it would be great if you can contribute it back so others can use it too.

Thanks!

Kevin