From 5f14543668f77b552b6b7690ff274736df02a9cc Mon Sep 17 00:00:00 2001 From: wm4 Date: Mon, 1 Sep 2014 23:47:27 +0200 Subject: player: simplistic HLS bitrate selection --hls-bitrate=min/max lets you select the min or max bitrate. That's it. Something more sophisticated might be possible, but is probably not even worth the effort. --- options/options.c | 3 +++ options/options.h | 1 + 2 files changed, 4 insertions(+) (limited to 'options') diff --git a/options/options.c b/options/options.c index 00c8c0fbb5..d436cb7535 100644 --- a/options/options.c +++ b/options/options.c @@ -202,6 +202,9 @@ const m_option_t mp_opts[] = { OPT_STRING("quvi-format", quvi_format, 0), OPT_FLAG("quvi-fetch-subtitles", quvi_fetch_subtitles, 0), + OPT_CHOICE("hls-bitrate", hls_bitrate, M_OPT_FIXED, + ({"no", 0}, {"min", 1}, {"max", 2})), + #if HAVE_CDDA OPT_SUBSTRUCT("cdda", stream_cdda_opts, stream_cdda_conf, 0), OPT_STRING("cdrom-device", cdrom_device, 0), diff --git a/options/options.h b/options/options.h index 701c9e236b..83593c837a 100644 --- a/options/options.h +++ b/options/options.h @@ -123,6 +123,7 @@ typedef struct MPOpts { char *force_configdir; int use_filedir_conf; int network_rtsp_transport; + int hls_bitrate; struct mp_cache_opts stream_cache; int chapterrange[2]; int edition_id; -- cgit v1.2.3