From 19a63b9d196d7182579250e87aebf8c550e6e4bf Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Wed, 16 Oct 2024 18:52:18 -0600 Subject: [PATCH] Move segment start times --- src/client-schema.gql | 7 +++++-- src/index.tsx | 12 ++++++------ src/operations/video.gql | 4 ++-- 3 files changed, 13 insertions(+), 10 deletions(-) diff --git a/src/client-schema.gql b/src/client-schema.gql index 96a1150..1e9d5a5 100644 --- a/src/client-schema.gql +++ b/src/client-schema.gql @@ -7,6 +7,9 @@ extend type ShotGQL { } extend type UploadStreamGQL { - segmentDurations: [Float!]! - segmentStartFrames: [Int!]! + segmentEndFrames: [Int!]! +} + +extend type HLSPlaylistGQL { + segmentStartTimes: [Float!]! } diff --git a/src/index.tsx b/src/index.tsx index 807eac7..247c3e1 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -1677,6 +1677,7 @@ export type HlsPlaylistGql = { __typename?: "HLSPlaylistGQL"; m3u8Text: Scalars["String"]["output"]; segmentDurations: Array; + segmentStartTimes: Array; videoId: Scalars["Int"]["output"]; }; @@ -2164,9 +2165,8 @@ export type UploadStreamGql = { linksRequested: Scalars["Int"]["output"]; lowestUnuploadedSegmentIndex: Scalars["Int"]["output"]; resolution: VideoResolutionGql; - segmentDurations: Array; + segmentEndFrames: Array; segmentProcessingCursor: Scalars["Int"]["output"]; - segmentStartFrames: Array; segments: Array; streamSegmentType: StreamSegmentTypeEnum; updatedAt: Scalars["DateTime"]["output"]; @@ -3114,13 +3114,13 @@ export type GetVideoForClipTimesQuery = { playlist?: { __typename?: "HLSPlaylistGQL"; segmentDurations: Array; + segmentStartTimes: Array; } | null; stream?: { __typename?: "UploadStreamGQL"; id: string; streamSegmentType: StreamSegmentTypeEnum; - segmentDurations: Array; - segmentStartFrames: Array; + segmentEndFrames: Array; segments: Array<{ __typename?: "UploadSegmentGQL"; uploaded: boolean; @@ -5495,12 +5495,12 @@ export const GetVideoForClipTimesDocument = gql` framesPerSecond playlist { segmentDurations + segmentStartTimes } stream { id streamSegmentType - segmentDurations - segmentStartFrames + segmentEndFrames segments { uploaded valid diff --git a/src/operations/video.gql b/src/operations/video.gql index 364e563..f86ac63 100644 --- a/src/operations/video.gql +++ b/src/operations/video.gql @@ -235,12 +235,12 @@ query GetVideoForClipTimes($videoId: Int!) { framesPerSecond playlist { segmentDurations + segmentStartTimes } stream { id streamSegmentType - segmentDurations - segmentStartFrames + segmentEndFrames segments { uploaded valid