Results 1 to 2 of 2

Thread: Wowza 4.4.1: Add the custom header at right ts chunk on the playlist m3u8

  1. #1
    Join Date
    Mar 2016

    Default Wowza 4.4.1: Add the custom header at right ts chunk on the playlist m3u8


    This is a bit complicated issue.
    I am hoping there is a someone has a suggestion, or maybe a solution for it.

    I have been testing the timing for injecting
    onTextData to the rtmp then use that as a trigger for
    inject a custom header to hls playlist(chunklist) m3u8.

    I have read/tried this article for creating the event trigger.


    add function to create a custom header for m3u8 based on this article

    It actually will inject the custom header to the ts chunk which contains the packet where I injected onTextData( call the sendDirect() event).

    However, my challenge is that I want to add the custom header to the closer ts chunk , rather then the onTextData contained chunk.

    For example,
    let's say the ts chunk was segmented in 2s each(constant frame rate from publisher),
    and the onTextData was called at 1.8s on that chunk,
    it is more accurate to add custom header to the next ts chunk(+0.2s difference) rather than add the at the current ts chunk's begging (-1.8s difference).

    is there a better way for doing this?

    Thank you

  2. #2
    Join Date
    May 2013


    Hello Oli

    In the article you referenced in creating the custom headers, it may be that IHTTPStreamerCupertinoLivePacketizerDataHandler2 could be an avenue to try to inject the metadata via the onFillChunkMediaPacket or onChunkStart event handlers. It could get tricky but seems that may be a good place to start.



Similar Threads

  1. playlist.m3u8 and chunklist_wxxxxxxx.m3u8
    By Lelik1985 in forum Live Streaming and Encoders
    Replies: 1
    Last Post: 04-16-2015, 06:46 AM
  2. Replies: 1
    Last Post: 03-12-2015, 05:54 AM
  3. WowzaStreamingEngine needs CORS header sent on playlist.m3u8
    By chillininvt in forum Live Streaming and Encoders
    Replies: 5
    Last Post: 04-16-2014, 08:43 AM
  4. Possible to add HTTP header to the playlis and mainfest requests
    By joexromero in forum Server-side Modules and Code Samples Discussion
    Replies: 6
    Last Post: 11-22-2011, 01:13 PM
  5. DVR Chunk Target Duration / Chunk Limit
    By carlosleite in forum AddOn: Wowza nDVR
    Replies: 1
    Last Post: 10-19-2011, 01:30 PM

Posting Permissions

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