Shaka Packager SDK
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends
segment_info.h
1 // Copyright 2014 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 MPD_BASE_SEGMENT_INFO_H_
8 #define MPD_BASE_SEGMENT_INFO_H_
9 
10 namespace shaka {
14 struct SegmentInfo {
15  uint64_t start_time;
16  uint64_t duration;
17  // This is the number of times same duration segments are repeated not
18  // inclusive. In other words if this is the only one segment that starts at
19  // |start_time| and has |duration| but none others have |start_time| * N and
20  // |duration|, then this should be set to 0. The semantics is the same as S@r
21  // in the DASH MPD spec.
22  uint64_t repeat;
23 };
24 } // namespace shaka
25 
26 #endif // MPD_BASE_SEGMENT_INFO_H_