Duration of the segments in seconds. The default is 6s. Note that segmentDuration must be greater than or equal to gop_duration, and segmentDuration must be divisible by gop_duration. Valid range is [2s, 20s]. All mux_streams in the same manifest must have the same segment duration.
getSegmentDuration
Duration of the segments in seconds. The default is 6s. Note that
segmentDuration must be greater than or equal to
gop_duration,
and segmentDuration must be divisible by
gop_duration.
Valid range is [2s, 20s].
All mux_streams in
the same manifest must have the same segment duration.
Duration of the segments in seconds. The default is 6s. Note that
segmentDuration must be greater than or equal to
gop_duration,
and segmentDuration must be divisible by
gop_duration.
Valid range is [2s, 20s].
All 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."],[],[],null,["# Google Cloud Video Live Stream V1 Client - Class SegmentSettings (1.2.1)\n\nVersion latestkeyboard_arrow_down\n\n- [1.2.1 (latest)](/php/docs/reference/cloud-video-live-stream/latest/V1.SegmentSettings)\n- [1.2.0](/php/docs/reference/cloud-video-live-stream/1.2.0/V1.SegmentSettings)\n- [1.1.3](/php/docs/reference/cloud-video-live-stream/1.1.3/V1.SegmentSettings)\n- [1.0.0](/php/docs/reference/cloud-video-live-stream/1.0.0/V1.SegmentSettings)\n- [0.7.5](/php/docs/reference/cloud-video-live-stream/0.7.5/V1.SegmentSettings)\n- [0.6.2](/php/docs/reference/cloud-video-live-stream/0.6.2/V1.SegmentSettings)\n- [0.5.0](/php/docs/reference/cloud-video-live-stream/0.5.0/V1.SegmentSettings)\n- [0.4.2](/php/docs/reference/cloud-video-live-stream/0.4.2/V1.SegmentSettings)\n- [0.3.2](/php/docs/reference/cloud-video-live-stream/0.3.2/V1.SegmentSettings)\n- [0.2.6](/php/docs/reference/cloud-video-live-stream/0.2.6/V1.SegmentSettings) \nReference documentation and code samples for the Google Cloud Video Live Stream V1 Client class SegmentSettings.\n\nSegment settings for `fmp4` and `ts`.\n\nGenerated from protobuf message `google.cloud.video.livestream.v1.SegmentSettings`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Video \\\\ LiveStream \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getSegmentDuration\n\nDuration of the segments in seconds. The default is `6s`. Note that\n`segmentDuration` must be greater than or equal to\ngop_duration,\nand `segmentDuration` must be divisible by\ngop_duration.\n\nValid range is \\[2s, 20s\\].\nAll [mux_streams](/php/docs/reference/cloud-video-live-stream/latest/V1.Manifest#_Google_Cloud_Video_LiveStream_V1_Manifest__getMuxStreams__) in\nthe same manifest must have the same segment duration.\n\n### hasSegmentDuration\n\n### clearSegmentDuration\n\n### setSegmentDuration\n\nDuration of the segments in seconds. The default is `6s`. Note that\n`segmentDuration` must be greater than or equal to\ngop_duration,\nand `segmentDuration` must be divisible by\ngop_duration.\n\nValid range is \\[2s, 20s\\].\nAll [mux_streams](/php/docs/reference/cloud-video-live-stream/latest/V1.Manifest#_Google_Cloud_Video_LiveStream_V1_Manifest__getMuxStreams__) in\nthe same manifest must have the same segment duration."]]