Shaka Packager SDK
Loading...
Searching...
No Matches
hls_flags.cc
1// Copyright 2016 Google LLC. All rights reserved.
2//
3// Use of this source code is governed by a BSD-style
4// license that can be found in the LICENSE file or at
5// https://developers.google.com/open-source/licenses/bsd
6
7#include <packager/app/hls_flags.h>
8
9#include <cstdint>
10#include <optional>
11#include <string>
12
13#include <absl/flags/flag.h>
14
15ABSL_FLAG(std::string,
16 hls_master_playlist_output,
17 "",
18 "Output path for the master playlist for HLS. This flag must be"
19 "used to output HLS.");
20ABSL_FLAG(std::string,
21 hls_base_url,
22 "",
23 "The base URL for the Media Playlists and media files listed in "
24 "the playlists. This is the prefix for the files.");
25ABSL_FLAG(std::string,
26 hls_key_uri,
27 "",
28 "The key uri for 'identity' and 'com.apple.streamingkeydelivery' "
29 "key formats. Ignored if the playlist is not encrypted or not "
30 "using the above key formats.");
31ABSL_FLAG(std::string,
32 hls_playlist_type,
33 "VOD",
34 "VOD, EVENT, or LIVE. This defines the EXT-X-PLAYLIST-TYPE in "
35 "the HLS specification. For hls_playlist_type of LIVE, "
36 "EXT-X-PLAYLIST-TYPE tag is omitted.");
37ABSL_FLAG(int32_t,
38 hls_media_sequence_number,
39 0,
40 "Number. This HLS-only parameter defines the initial "
41 "EXT-X-MEDIA-SEQUENCE value, which allows continuous media "
42 "sequence across packager restarts. See #691 for more "
43 "information about the reasoning of this and its use cases.");
44ABSL_FLAG(std::optional<double>,
45 hls_start_time_offset,
46 std::nullopt,
47 "Floating-point number. Sets EXT-X-START on the media playlists "
48 "to specify the preferred point at wich the player should start "
49 "playing. A positive number indicates a time offset from the "
50 "beginning of the playlist. A negative number indicates a "
51 "negative time offset from the end of the last media segment "
52 "in the playlist.");
53ABSL_FLAG(bool,
54 create_session_keys,
55 false,
56 "Playback of Offline HLS assets shall use EXT-X-SESSION-KEY "
57 "to declare all eligible content keys in the master playlist.");
58ABSL_FLAG(bool,
59 add_program_date_time,
60 false,
61 "Add EXT-X-PROGRAM-DATE-TIME tag to the playlist. The date time is "
62 "derived from the current wall clock time.");