The -hls_allow_cache parameter enables explicitly setting the
EXT-X-ALLOW-CACHE tag in the manifest file. That tag indicates
whether the client MAY or MUST NOT cache downloaded media
segments for later replay.
Valid values are 1 (=YES) or 0 (=NO) and the EXT-X-ALLOW-CACHE
will not show in the manifest for other values (or if
-hls_allow_cache is not used.
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
pull/86/head
Joakim Roubert10 years agocommitted byMichael Niedermayer
{"hls_list_size","set maximum number of playlist entries",OFFSET(max_nb_segments),AV_OPT_TYPE_INT,{.i64=5},0,INT_MAX,E},
{"hls_ts_options","set hls mpegts list of options for the container format used for hls",OFFSET(format_options_str),AV_OPT_TYPE_STRING,{.str=NULL},0,0,E},
{"hls_wrap","set number after which the index wraps",OFFSET(wrap),AV_OPT_TYPE_INT,{.i64=0},0,INT_MAX,E},
{"hls_allow_cache","explicitly set whether the client MAY (1) or MUST NOT (0) cache media segments",OFFSET(allowcache),AV_OPT_TYPE_INT,{.i64=-1},INT_MIN,INT_MAX,E},
{"hls_base_url","url to prepend to each playlist entry",OFFSET(baseurl),AV_OPT_TYPE_STRING,{.str=NULL},0,0,E},
{"hls_flags","set flags affecting HLS playlist and media file generation",OFFSET(flags),AV_OPT_TYPE_FLAGS,{.i64=0},0,UINT_MAX,E,"flags"},
{"single_file","generate a single media file indexed with byte ranges",0,AV_OPT_TYPE_CONST,{.i64=HLS_SINGLE_FILE},0,UINT_MAX,E,"flags"},