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;
44  std::string key_uri;
50  std::string default_language;
53  std::string default_text_language;
54  // Indicates that all media samples in the media segments can be decoded
55  // without information from other segments.
56  bool is_independent_segments;
64  uint32_t media_sequence_number = 0;
65 };
66 
67 } // namespace shaka
68 
69 #endif // PACKAGER_HLS_PUBLIC_HLS_PARAMS_H_
All the methods that are virtual are virtual for mocking.
HlsPlaylistType
Definition: hls_params.h:16
HLS related parameters.
Definition: hls_params.h:23
uint32_t media_sequence_number
Definition: hls_params.h:64
std::string base_url
Definition: hls_params.h:30
std::string key_uri
Definition: hls_params.h:44
std::string default_text_language
Definition: hls_params.h:53
HlsPlaylistType playlist_type
HLS playlist type. See HLS specification for details.
Definition: hls_params.h:25
size_t preserved_segments_outside_live_window
Definition: hls_params.h:40
double target_segment_duration
Definition: hls_params.h:61
std::string default_language
Definition: hls_params.h:50
double time_shift_buffer_depth
Definition: hls_params.h:33
std::string master_playlist_output
HLS master playlist output path.
Definition: hls_params.h:27