Shaka Packager SDK
hls_params.h
1 // Copyright 2017 Google Inc. 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 #ifndef PACKAGER_HLS_PUBLIC_HLS_PARAMS_H_
8 #define PACKAGER_HLS_PUBLIC_HLS_PARAMS_H_
9 
10 #include <string>
11 
12 namespace shaka {
13 
16 enum class HlsPlaylistType {
17  kVod,
18  kEvent,
19  kLive,
20 };
21 
23 struct HlsParams {
25  HlsPlaylistType playlist_type = HlsPlaylistType::kVod;
30  std::string base_url;
33  double time_shift_buffer_depth = 0;
40  size_t preserved_segments_outside_live_window = 0;
44  std::string key_uri;
50  std::string default_language;
53  std::string default_text_language;
58  double target_segment_duration = 0;
59 };
60 
61 } // namespace shaka
62 
63 #endif // PACKAGER_HLS_PUBLIC_HLS_PARAMS_H_
std::string master_playlist_output
HLS master playlist output path.
Definition: hls_params.h:27
HlsPlaylistType
Definition: hls_params.h:16
std::string default_text_language
Definition: hls_params.h:53
HLS related parameters.
Definition: hls_params.h:23
All the methods that are virtual are virtual for mocking.
std::string default_language
Definition: hls_params.h:50
std::string base_url
Definition: hls_params.h:30
std::string key_uri
Definition: hls_params.h:44