Jump to content
  • 0

Quick Instructions: How to push HLS content to a HTTP Endpoint


mekya
 Share

Question

Hi Guys,

There is a simple and handy feature that you can push the HLS content(m3u8 and ts files) to any HTTP endpoint such as CDN or your own HTTP endpoint. 

TBH, this feature is implement for a use case that one of the lovely user would like to know when the ts/m3u8 files are created and he need to have further customizations/manipulations for ts/m3u8 files. So he will push the HLS content to his HTTP endpoint.

This feature is available in community and enterprise as a snapshot in this PR 4329 and it will be available in next version 2.5. To try this feature, please visit the latest-snapshot page. 

 Here are the instructions

1. Open your applications configuration file with your favorite editor. If your app is WebRTCAppEE, then it will be (/usr/local/antmedia/webapps/WebRTCAppEE/WEB-INF/red5-web.properties)

2. Add the following property to the file.

settings.hlsHttpEndpoint={https://example.com/hls-stream/}

Please change the HTTP URL with your own. 

3. Save the file and restart the server with the following command in your terminal

sudo service antmedia restart

After that just push a stream to Ant Media Server with stream123, AMS will push the files to the following endpoints with PUT method

https://example.com/hls-stream/stream123.m3u8
https://example.com/hls-stream/stream123_360p800kbps0001.ts
https://example.com/hls-stream/stream123_360p800kbps0002.ts
https://example.com/hls-stream/stream123_360p800kbps0003.ts
https://example.com/hls-stream/stream123.m3u8
...

The suffix "360p800kbps" for the ts files may change according to the configuration.

If you would like to try and give feedback, you're more than welcome

 

Regards,

A. Oguz

Link to comment
Share on other sites

  • Answers 0
  • Created
  • Last Reply

Top Posters For This Question

Popular Days

Top Posters For This Question

Popular Days

0 answers to this question

Recommended Posts

There have been no answers to this question yet

 Share


×
×
  • Create New...