public sealed class SegmentSettings : IMessage<SegmentSettings>, IEquatable<SegmentSettings>, IDeepCloneable<SegmentSettings>, IBufferMessage, IMessage
Reference documentation and code samples for the Live Stream v1 API class SegmentSettings.
Duration of the segments in seconds. The default is 6s. Note that
segmentDuration must be greater than or equal to
[gop_duration][google.cloud.video.livestream.v1.VideoStream.H264CodecSettings.gop_duration],
and segmentDuration must be divisible by
[gop_duration][google.cloud.video.livestream.v1.VideoStream.H264CodecSettings.gop_duration].
Valid range is [2s, 20s].
All [mux_streams][google.cloud.video.livestream.v1.Manifest.mux_streams] in
the same manifest must have the same segment duration.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThis webpage provides documentation for the \u003ccode\u003eSegmentSettings\u003c/code\u003e class within the Google Cloud Live Stream v1 API, specifically version 1.3.0.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eSegmentSettings\u003c/code\u003e is used to configure segment settings for \u003ccode\u003efmp4\u003c/code\u003e and \u003ccode\u003ets\u003c/code\u003e formats, and it implements multiple interfaces including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe class offers two constructors, one default and one that accepts another \u003ccode\u003eSegmentSettings\u003c/code\u003e object as a parameter for cloning.\u003c/p\u003e\n"],["\u003cp\u003eThe primary property, \u003ccode\u003eSegmentDuration\u003c/code\u003e, allows setting the duration of segments in seconds, with a valid range of 2 to 20 seconds, and must be greater than or equal to, as well as divisible by the \u003ccode\u003egop_duration\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe documentation includes links to earlier versions of the \u003ccode\u003eSegmentSettings\u003c/code\u003e such as 1.7.0, 1.6.0, 1.5.0, 1.4.0, 1.2.0, 1.1.0, and 1.0.0, with 1.8.0 being the latest.\u003c/p\u003e\n"]]],[],null,[]]