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_
shaka::HlsParams::default_text_language
std::string default_text_language
Definition: hls_params.h:53
shaka::HlsParams
HLS related parameters.
Definition: hls_params.h:23
shaka::HlsParams::default_language
std::string default_language
Definition: hls_params.h:50
shaka
All the methods that are virtual are virtual for mocking.
Definition: gflags_hex_bytes.cc:11
shaka::HlsParams::time_shift_buffer_depth
double time_shift_buffer_depth
Definition: hls_params.h:33
shaka::HlsParams::playlist_type
HlsPlaylistType playlist_type
HLS playlist type. See HLS specification for details.
Definition: hls_params.h:25
shaka::HlsParams::preserved_segments_outside_live_window
size_t preserved_segments_outside_live_window
Definition: hls_params.h:40
shaka::HlsParams::key_uri
std::string key_uri
Definition: hls_params.h:44
shaka::HlsParams::target_segment_duration
double target_segment_duration
Definition: hls_params.h:61
shaka::HlsParams::master_playlist_output
std::string master_playlist_output
HLS master playlist output path.
Definition: hls_params.h:27
shaka::HlsParams::base_url
std::string base_url
Definition: hls_params.h:30
shaka::HlsPlaylistType
HlsPlaylistType
Definition: hls_params.h:16
shaka::HlsParams::media_sequence_number
uint32_t media_sequence_number
Definition: hls_params.h:64