You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@trafficserver.apache.org by Jeremy Payne <jp...@gmail.com> on 2018/03/22 14:50:35 UTC

Re: Need Some Adjustments in Live Scenarios

Perfect use case for the lua plugin.



On Thu, Mar 22, 2018 at 1:49 AM, Vasanth Mathivanan
<va...@evolutiondigital.com> wrote:
> HI,
>
> We are working HLS live Concept in Traffic server ,when the client request
> made hit to get the m3u8 file then ts files …My question how get content
> before request to stored two or three ts files pull from cache.
>
> Any Possible this scenarios?
>
>
>
> Thanks & regards
>
> Vasanth M
>
> Sent from Mail for Windows 10
>
>

Re: Need Some Adjustments in Live Scenarios

Posted by Jeremy Payne <jp...@gmail.com>.
One thought is this.. when ATS receives a request for a m3u8, and if
that m3u8 results in a 200 TCP_MISS, then store that m3u8 URL
somewhere.
When that m3u8 is stored in whatever location, that store triggers a
job that then parses the m3u8, and then requests(using curl or
whatever http client) x amount of media segments from that m3u8.
By the time the client request those same segments, they are already
stored in cache.



On Fri, Mar 23, 2018 at 12:05 AM, Vasanth Mathivanan
<va...@evolutiondigital.com> wrote:
> HI,
>
> Thanks for your quick response ,I will explain which scenario we need ….Our
> live content start with 4 sec m3u8 call then the .ts file stored max 120
> secs ,same configuration specified in hdr _live.config file load cache well
> working  but When player request came for the last before 3rd .ts file play
> in m3u8 every 4sec generate dynamically   ,our question how that the last
> three .ts file before request to stored in cache ?
>
>
>
> Thanks & Regards
>
> Vasanth M
>
>
>
> Sent from Mail for Windows 10
>
>
>
> From: Jeremy Payne
> Sent: Thursday, March 22, 2018 10:04 PM
>
>
> To: users@trafficserver.apache.org
> Subject: Re: Need Some Adjustments in Live Scenarios
>
>
>
> Well think about how you would do this using a shell script, combined
> with curl, inotify, etc.
> Then take the same principles/flows and translate that into lua.
>
>
>
>
>
>
> On Thu, Mar 22, 2018 at 9:56 AM, Vasanth Mathivanan
> <va...@evolutiondigital.com> wrote:
>> HI ,
>>
>> Can you explain how we use in hdr live scenarios?  In the document so many
>> configuration  which one can I use ?
>>
>>
>>
>> Sent from Mail for Windows 10
>>
>>
>>
>> From: Jeremy Payne
>> Sent: Thursday, March 22, 2018 8:20 PM
>> To: users@trafficserver.apache.org
>> Subject: Re: Need Some Adjustments in Live Scenarios
>>
>>
>>
>> Perfect use case for the lua plugin.
>>
>>
>>
>> On Thu, Mar 22, 2018 at 1:49 AM, Vasanth Mathivanan
>> <va...@evolutiondigital.com> wrote:
>>> HI,
>>>
>>> We are working HLS live Concept in Traffic server ,when the client
>>> request
>>> made hit to get the m3u8 file then ts files …My question how get content
>>> before request to stored two or three ts files pull from cache.
>>>
>>> Any Possible this scenarios?
>>>
>>>
>>>
>>> Thanks & regards
>>>
>>> Vasanth M
>>>
>>> Sent from Mail for Windows 10
>>>
>>>

RE: Need Some Adjustments in Live Scenarios

Posted by Vasanth Mathivanan <va...@evolutiondigital.com>.
HI,

Thanks for your quick response ,I will explain which scenario we need ….Our live content start with 4 sec m3u8 call then the .ts file stored max 120 secs ,same configuration specified in hdr _live.config file load cache well working  but When player request came for the last before 3rd .ts file play in m3u8 every 4sec generate dynamically   ,our question how that the last three .ts file before request to stored in cache ?



Thanks & Regards

Vasanth M



Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows 10



From: Jeremy Payne<ma...@gmail.com>
Sent: Thursday, March 22, 2018 10:04 PM
To: users@trafficserver.apache.org<ma...@trafficserver.apache.org>
Subject: Re: Need Some Adjustments in Live Scenarios



Well think about how you would do this using a shell script, combined
with curl, inotify, etc.
Then take the same principles/flows and translate that into lua.






On Thu, Mar 22, 2018 at 9:56 AM, Vasanth Mathivanan
<va...@evolutiondigital.com> wrote:
> HI ,
>
> Can you explain how we use in hdr live scenarios?  In the document so many
> configuration  which one can I use ?
>
>
>
> Sent from Mail for Windows 10
>
>
>
> From: Jeremy Payne
> Sent: Thursday, March 22, 2018 8:20 PM
> To: users@trafficserver.apache.org
> Subject: Re: Need Some Adjustments in Live Scenarios
>
>
>
> Perfect use case for the lua plugin.
>
>
>
> On Thu, Mar 22, 2018 at 1:49 AM, Vasanth Mathivanan
> <va...@evolutiondigital.com> wrote:
>> HI,
>>
>> We are working HLS live Concept in Traffic server ,when the client request
>> made hit to get the m3u8 file then ts files …My question how get content
>> before request to stored two or three ts files pull from cache.
>>
>> Any Possible this scenarios?
>>
>>
>>
>> Thanks & regards
>>
>> Vasanth M
>>
>> Sent from Mail for Windows 10
>>
>>

Re: Need Some Adjustments in Live Scenarios

Posted by Jeremy Payne <jp...@gmail.com>.
Well think about how you would do this using a shell script, combined
with curl, inotify, etc.
Then take the same principles/flows and translate that into lua.






On Thu, Mar 22, 2018 at 9:56 AM, Vasanth Mathivanan
<va...@evolutiondigital.com> wrote:
> HI ,
>
> Can you explain how we use in hdr live scenarios?  In the document so many
> configuration  which one can I use ?
>
>
>
> Sent from Mail for Windows 10
>
>
>
> From: Jeremy Payne
> Sent: Thursday, March 22, 2018 8:20 PM
> To: users@trafficserver.apache.org
> Subject: Re: Need Some Adjustments in Live Scenarios
>
>
>
> Perfect use case for the lua plugin.
>
>
>
> On Thu, Mar 22, 2018 at 1:49 AM, Vasanth Mathivanan
> <va...@evolutiondigital.com> wrote:
>> HI,
>>
>> We are working HLS live Concept in Traffic server ,when the client request
>> made hit to get the m3u8 file then ts files …My question how get content
>> before request to stored two or three ts files pull from cache.
>>
>> Any Possible this scenarios?
>>
>>
>>
>> Thanks & regards
>>
>> Vasanth M
>>
>> Sent from Mail for Windows 10
>>
>>

RE: Need Some Adjustments in Live Scenarios

Posted by Vasanth Mathivanan <va...@evolutiondigital.com>.
HI ,

Can you explain how we use in hdr live scenarios?  In the document so many configuration  which one can I use ?



Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows 10



From: Jeremy Payne<ma...@gmail.com>
Sent: Thursday, March 22, 2018 8:20 PM
To: users@trafficserver.apache.org<ma...@trafficserver.apache.org>
Subject: Re: Need Some Adjustments in Live Scenarios



Perfect use case for the lua plugin.



On Thu, Mar 22, 2018 at 1:49 AM, Vasanth Mathivanan
<va...@evolutiondigital.com> wrote:
> HI,
>
> We are working HLS live Concept in Traffic server ,when the client request
> made hit to get the m3u8 file then ts files …My question how get content
> before request to stored two or three ts files pull from cache.
>
> Any Possible this scenarios?
>
>
>
> Thanks & regards
>
> Vasanth M
>
> Sent from Mail for Windows 10
>
>