39 lines
1.1 KiB
C
39 lines
1.1 KiB
C
|
// Copyright 2017 Google Inc. All rights reserved.
|
||
|
//
|
||
|
// 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
|
||
|
|
||
|
#ifndef PACKAGER_HLS_PUBLIC_HLS_PARAMS_H_
|
||
|
#define PACKAGER_HLS_PUBLIC_HLS_PARAMS_H_
|
||
|
|
||
|
#include <string>
|
||
|
|
||
|
namespace shaka {
|
||
|
|
||
|
/// Defines the EXT-X-PLAYLIST-TYPE in the HLS specification. For
|
||
|
/// HlsPlaylistType of kLive, EXT-X-PLAYLIST-TYPE tag is omitted.
|
||
|
enum class HlsPlaylistType {
|
||
|
kVod,
|
||
|
kEvent,
|
||
|
kLive,
|
||
|
};
|
||
|
|
||
|
/// HLS related parameters.
|
||
|
struct HlsParams {
|
||
|
/// HLS playlist type. See HLS specification for details.
|
||
|
HlsPlaylistType playlist_type = HlsPlaylistType::kVod;
|
||
|
/// HLS master playlist output path.
|
||
|
std::string master_playlist_output;
|
||
|
/// The base URL for the Media Playlists and media files listed in the
|
||
|
/// playlists. This is the prefix for the files.
|
||
|
std::string base_url;
|
||
|
/// Defines the live window, or the guaranteed duration of the time shifting
|
||
|
/// buffer for 'live' playlists.
|
||
|
double time_shift_buffer_depth = 0;
|
||
|
};
|
||
|
|
||
|
} // namespace shaka
|
||
|
|
||
|
#endif // PACKAGER_HLS_PUBLIC_HLS_PARAMS_H_
|