You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@trafficserver.apache.org by Nelson Perez <bi...@gmail.com> on 2011/07/12 23:04:22 UTC
Random access in cached files
Hi there, my name is Nelson Pérez and I'm mainly interested in using ATS as
a video cache server. I was wondering if there is a way (using the plugin
API) to have some kind of random access to files stored in the TS cache.
As you can imagine this would be very appreciated while working with video
content, but as far as I know the SDK programmer's guide only mentions a
function (TSCacheRead) that does not provide a way of reading a file the way
I intend to.
So is there any way around it?
Thanks
Nelson
Re: Random access in cached files
Posted by Leif Hedstrom <zw...@apache.org>.
On 07/12/2011 03:04 PM, Nelson Perez wrote:
> Hi there, my name is Nelson Pérez and I'm mainly interested in using ATS as
> a video cache server. I was wondering if there is a way (using the plugin
> API) to have some kind of random access to files stored in the TS cache.
I'm not sure I understand this. What exactly do you need to do? If you
plugin needs to fetch something through the HTTP engine and cache, there
are APIs for that (typically you'd want to use TSHttpConnect() for this
). There are also APIs to "walk" over everything in cache, which of
course can be fairly expensive if there are a lot of objects. See the
TSCacheScan() APIs for that.
-- Leif
Re: Random access in cached files
Posted by Nelson Perez <bi...@gmail.com>.
On Tue, Jul 12, 2011 at 7:47 PM, John Plevyak <jp...@acm.org> wrote:
> Are you interested in seeking to points in files? That feature is new in
> the cache
>
Exactly, I saw an aparently new function (TSCacheScan) being used in the
cache_scan example and it looked somehow what I want, but I saw that
it takes something like the bitrate as a second argument. Is that so?
> but not available yet via the API. If that is what you mean, file a bug
> and
> we will get it into the API.
>
Ok, thanks for the quick reply.
Nelson
Thanx,
> john
>
> On Tue, Jul 12, 2011 at 2:04 PM, Nelson Perez <bi...@gmail.com> wrote:
>
> > Hi there, my name is Nelson Pérez and I'm mainly interested in using ATS
> as
> > a video cache server. I was wondering if there is a way (using the plugin
> > API) to have some kind of random access to files stored in the TS cache.
> >
> > As you can imagine this would be very appreciated while working with
> video
> > content, but as far as I know the SDK programmer's guide only mentions a
> > function (TSCacheRead) that does not provide a way of reading a file the
> > way
> > I intend to.
> >
> > So is there any way around it?
> >
> > Thanks
> > Nelson
> >
>
Re: Random access in cached files
Posted by John Plevyak <jp...@acm.org>.
Are you interested in seeking to points in files? That feature is new in
the cache
but not available yet via the API. If that is what you mean, file a bug
and
we will get it into the API.
Thanx,
john
On Tue, Jul 12, 2011 at 2:04 PM, Nelson Perez <bi...@gmail.com> wrote:
> Hi there, my name is Nelson Pérez and I'm mainly interested in using ATS as
> a video cache server. I was wondering if there is a way (using the plugin
> API) to have some kind of random access to files stored in the TS cache.
>
> As you can imagine this would be very appreciated while working with video
> content, but as far as I know the SDK programmer's guide only mentions a
> function (TSCacheRead) that does not provide a way of reading a file the
> way
> I intend to.
>
> So is there any way around it?
>
> Thanks
> Nelson
>