Results 1 to 2 of 2

Thread: How to customize M3U8 headers for live captions

  1. #1
    Join Date
    Dec 2009
    Posts
    26

    Default How to customize M3U8 headers for live captions

    I'm using the latest Streaming Engine and need a way to customize M3U8 headers. As a quick example:

    #EXT-X-MEDIA:TYPE=SUBTITLES,GROUP-ID="subs",NAME="English",FORCED=NO,AUTOSELECT=YES,URI="subtitlelist_leng.m3u8",LANGUAGE="eng"

    I want to update FORCED=NO to FORCED=YES. Is there support for this in 4.1.x?

  2. #2
    Join Date
    Jan 2015
    Posts
    302

    Default

    Hi elcapitan26,

    You can specify the FORCED attribute to have a value of "YES" by adding it in a SMIL file and using the SMIL file for your streaming. You can check the article on using WebVTT subtitles for HLS for more information on this.

    Here's a quick example:
    <smil> 
    <head> 
    </head> 
    <body> 
    <switch>
    
    <video src="mp4:sample.mp4" system-bitrate="500000"/>
    
    <textstream src="mp4:sample.mp4" system-language="eng"> 
    <param name="cupertinoTag" value="EXT-X-MEDIA" valuetype="data"/> 
    <param name="cupertinoTag.TYPE" value="SUBTITLES" valuetype="data"/> 
    <param name="cupertinoTag.LANGUAGE" value="en" valuetype="data"/> 
    <param name="cupertinoTag.FORCED" value="YES" valuetype="data"/> 
    <param name="cupertinoTag.NAME" value="English" valuetype="data"/> 
    </switch> 
    </body> 
    </smil>
    Michelle

Similar Threads

  1. m3u8 custom headers/tags
    By igra__ in forum Server-side Modules and Code Samples Discussion
    Replies: 4
    Last Post: 06-03-2015, 02:58 PM
  2. add http headers for apple HLS m3u8 file and ts file
    By johsun in forum Live Streaming and Encoder Discussion
    Replies: 6
    Last Post: 11-15-2013, 06:32 AM
  3. SmoothStreaming Live and no-cache headers
    By mallyhubz in forum Live Streaming and Encoder Discussion
    Replies: 4
    Last Post: 03-20-2012, 08:41 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
  •