Results 1 to 7 of 7

Thread: add http headers for apple HLS m3u8 file and ts file

  1. #1
    Join Date
    Nov 2013
    Posts
    6

    Default add http headers for apple HLS m3u8 file and ts file

    Hi,

    I want add custom http headers for HLS streaming not cupertinoCacheControlPlaylist and cupertinoCacheControlMediaChunk, and I know I could use cupertinoUserHTTPHeaders in wowza 3.6.2.
    When I add one property in Application.xml, it would affect both m3u8 response and ts response, but I only want to add this http header to the m3u8 response.

    Would you please give me some advise?

  2. #2

    Default

    What header are you trying to add? ... I think you'll have to build a custom module for modifying headers in a non-built-in way

  3. #3
    Join Date
    Dec 2007
    Posts
    21,962

    Default

    There is a way to add arbitrary headers for cupertino and smooth by adding cupertinoUserHTTPHeaders or smoothUserHTTPHeaders to the Application.xml /HTTPStreamer/Properties container. Use pipe separated name value pairs that are : separated:

    name1:value1|name2:value2

    <Property>
    	<Name>cupertinoUserHTTPHeaders</Name>
    	<Value>Access-Control-Allow-Origin: *</Value>
    </Property>
    Richard

  4. #4
    Join Date
    Nov 2013
    Posts
    6

    Default

    Hi rrlanham and tavius ,

    I want to add s-maxage header in chunklist.m3u8 response, the value for chunklist.m3u8 is 1 second, and I don't want it affect the ts response.

    build a custom module for modifying headers in a non-built-in way

    How Can I do that, inheriting the HTTPStreamerAdapterCupertinoStreamer and HTTPStreamerApplicationContextCupertinoStreamer?

  5. #5
    Join Date
    Dec 2007
    Posts
    21,962

    Default

    Add this to Application.xml /HTTPStreamer Properties container:

    <Property>
    	<Name>cupertinoUserHTTPHeaders</Name>
    	<Value>x-maxusage:1</Value>
    </Property>

    Note that there is an /HTTPStreamers block where packetizers are set, but you want to add this further down in the /HTTPStream Properties

    Richard

  6. #6
    Join Date
    Nov 2013
    Posts
    6

    Default

    Hi Richard,

    Add this:
    <Property>
    <Name>cupertinoUserHTTPHeaders</Name>
    <Value>x-maxusage:1</Value>
    </Property>

    would affect both m3u8 response and ts response, but I don't want the ts response has this header.

  7. #7
    Join Date
    Dec 2007
    Posts
    21,962

    Default

    It is in the http header of the playlist.m3u8 url. You can check with curl

    curl --head http://[wowza-address]:1935/[app-name]/[stream-name]/playlist.m3u8

    Richard

Similar Threads

  1. http(hls) streaming with smil file to refer 1 mp4 file ( multi-cahannels )
    By qstream in forum Video On Demand Streaming Discussion
    Replies: 4
    Last Post: 10-26-2013, 12:52 AM
  2. Add query params to *.ts urls inside hls playlist.m3u8
    By zallesov in forum Server-side Modules and Code Samples Discussion
    Replies: 1
    Last Post: 05-31-2013, 01:25 PM
  3. m3u8 file generated even if file does not exsits
    By shay@mintmark.co.il in forum Video On Demand Streaming Discussion
    Replies: 2
    Last Post: 08-17-2012, 09:09 AM
  4. Replies: 1
    Last Post: 03-13-2012, 04:11 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •