2022-08-26 15:44:59 +00:00
|
|
|
// Copyright 2017 Google LLC. All rights reserved.
|
2017-07-27 17:23:27 +00:00
|
|
|
//
|
|
|
|
// 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_MEDIA_PUBLIC_CHUNKING_PARAMS_H_
|
|
|
|
#define PACKAGER_MEDIA_PUBLIC_CHUNKING_PARAMS_H_
|
|
|
|
|
|
|
|
namespace shaka {
|
|
|
|
|
|
|
|
/// Chunking (segmentation) related parameters.
|
|
|
|
struct ChunkingParams {
|
|
|
|
/// Segment duration in seconds.
|
|
|
|
double segment_duration_in_seconds = 0;
|
|
|
|
/// Subsegment duration in seconds. Should not be larger than the segment
|
|
|
|
/// duration.
|
|
|
|
double subsegment_duration_in_seconds = 0;
|
|
|
|
|
|
|
|
/// Force segments to begin with stream access points. Actual segment duration
|
|
|
|
/// may not be exactly what is specified by segment_duration.
|
|
|
|
bool segment_sap_aligned = true;
|
|
|
|
/// Force subsegments to begin with stream access points. Actual subsegment
|
|
|
|
/// duration may not be exactly what is specified by subsegment_duration.
|
|
|
|
/// Setting to subsegment_sap_aligned to true but segment_sap_aligned to false
|
|
|
|
/// is not allowed.
|
|
|
|
bool subsegment_sap_aligned = true;
|
2021-08-25 15:38:05 +00:00
|
|
|
/// Enable LL-DASH streaming.
|
|
|
|
/// Each segment constists of many fragments, and each fragment contains one
|
|
|
|
/// chunk. A chunk is the smallest unit and is constructed of a single moof
|
|
|
|
/// and mdat atom. Each chunk is uploaded immediately upon creation,
|
|
|
|
/// decoupling latency from segment duration.
|
|
|
|
bool low_latency_dash_mode = false;
|
2017-07-27 17:23:27 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace shaka
|
|
|
|
|
|
|
|
#endif // PACKAGER_MEDIA_PUBLIC_CHUNKING_PARAMS_H_
|