![](https://secure.gravatar.com/avatar/6e3103369192b46af6e73ba63723f0c5?rating=PG&size=50&default=https%3A%2F%2Fcdn.desk.com%2Fassets%2Funknown_user_50-8ad5644bbe6b1bd7454f2ea465f782bd.png)
HLS segment with custom download function
Hi,
I'm looking for a way to attach a function in order to catch m3u8 / ts file downloads when buffering.
Thanks in advance.
Hi,
I'm looking for a way to attach a function in order to catch m3u8 / ts file downloads when buffering.
Thanks in advance.
Hi,
Currently we do not have a way to control this. As it stands, the download function will only work with actual video files.
Regards,
Andrew
Hi,
I maybe misspoke, the function I want to attach to jwplayer aim to replace media file retrieval by jwplayer.
I want to add a light drm, to do that I need to change the content on the fly before passing it to jwplayer.
Something like:
var CustomStream = function (url) {};
CustomStream.prototype.read = function () {};
CustomStream.prototype.eof = function () {};
CustomStream.prototype.close = function () {};
jwplayer('container').setup
({ file: '/some/url.m3u8',
useRetriever: CustomStream
});
Best,
Hi,
I don’t believe that we currently support this method of media file retrieval.