2023-12-01 17:32:19 +00:00
|
|
|
// Copyright 2016 Google LLC. All rights reserved.
|
2016-04-16 22:58:47 +00:00
|
|
|
//
|
|
|
|
// Use of this source code is governed by a BSD-style
|
|
|
|
// license that can be found in the LICENSE file or at
|
|
|
|
// https://developers.google.com/open-source/licenses/bsd
|
|
|
|
|
2023-12-01 17:32:19 +00:00
|
|
|
#include <packager/app/hls_flags.h>
|
2016-04-16 22:58:47 +00:00
|
|
|
|
2024-02-15 20:06:06 +00:00
|
|
|
#include <optional>
|
|
|
|
|
2023-12-01 17:32:19 +00:00
|
|
|
ABSL_FLAG(std::string,
|
|
|
|
hls_master_playlist_output,
|
|
|
|
"",
|
|
|
|
"Output path for the master playlist for HLS. This flag must be"
|
|
|
|
"used to output HLS.");
|
|
|
|
ABSL_FLAG(std::string,
|
|
|
|
hls_base_url,
|
|
|
|
"",
|
|
|
|
"The base URL for the Media Playlists and media files listed in "
|
|
|
|
"the playlists. This is the prefix for the files.");
|
|
|
|
ABSL_FLAG(std::string,
|
|
|
|
hls_key_uri,
|
|
|
|
"",
|
|
|
|
"The key uri for 'identity' and 'com.apple.streamingkeydelivery' "
|
|
|
|
"key formats. Ignored if the playlist is not encrypted or not "
|
|
|
|
"using the above key formats.");
|
|
|
|
ABSL_FLAG(std::string,
|
|
|
|
hls_playlist_type,
|
|
|
|
"VOD",
|
|
|
|
"VOD, EVENT, or LIVE. This defines the EXT-X-PLAYLIST-TYPE in "
|
|
|
|
"the HLS specification. For hls_playlist_type of LIVE, "
|
|
|
|
"EXT-X-PLAYLIST-TYPE tag is omitted.");
|
|
|
|
ABSL_FLAG(int32_t,
|
|
|
|
hls_media_sequence_number,
|
|
|
|
0,
|
|
|
|
"Number. This HLS-only parameter defines the initial "
|
|
|
|
"EXT-X-MEDIA-SEQUENCE value, which allows continuous media "
|
|
|
|
"sequence across packager restarts. See #691 for more "
|
|
|
|
"information about the reasoning of this and its use cases.");
|
2024-02-15 20:06:06 +00:00
|
|
|
ABSL_FLAG(std::optional<double>,
|
|
|
|
hls_start_time_offset,
|
|
|
|
std::nullopt,
|
|
|
|
"Floating-point number. Sets EXT-X-START on the media playlists "
|
|
|
|
"to specify the preferred point at wich the player should start "
|
|
|
|
"playing. A positive number indicates a time offset from the "
|
|
|
|
"beginning of the playlist. A negative number indicates a "
|
|
|
|
"negative time offset from the end of the last media segment "
|
|
|
|
"in the playlist.");
|
2024-10-25 16:55:27 +00:00
|
|
|
ABSL_FLAG(bool,
|
|
|
|
create_session_keys,
|
|
|
|
false,
|
|
|
|
"Playback of Offline HLS assets shall use EXT-X-SESSION-KEY "
|
|
|
|
"to declare all eligible content keys in the master playlist.");
|