Name is required.
Email address is required.
Invalid email address
Answer is required.
Exceeding max length of 5KB

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.

3 Community Answers

Andrew

JW Player Support Agent  
0 rated :

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

dpagnac

User  
0 rated :

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,

Andrew

JW Player Support Agent  
0 rated :

Hi,

I don’t believe that we currently support this method of media file retrieval.

This question has received the maximum number of answers.