Skip to content

m3u8_edit:add_session_key

m3u8_edit:add_session_key

Adds the EXT-X-SESSION-KEY to an HLS master playlist.

  • input_master_playlist input master playlist to parse. If output_master_playlist not specified, this file is overwritten.

  • input_media_playlists list of input media playlists that include the EXT-X-KEY tags

  • output_master_playlist the output master playlist to save to. If not specified, the input is overwritten.

Example:

{
  "tool": "m3u8_edit:add_session_key",
  "parameters": {
    "input_master_playlist": "index.m3u8",
    "input_media_playlists": ["sd1.m3u8", "sd2.m3u8", "audio.m3u8"]
  }
}
Parameter Properties Default Type Choice Description
input_media_playlists required [list value] Input media playlists.
input_master_playlist required Master playlist to edit.
output_master_playlist optional Updated master playlist. If empty, the input is overwritten.