diff --git a/src/client-schema.gql b/src/client-schema.gql index 31abcfa..96a1150 100644 --- a/src/client-schema.gql +++ b/src/client-schema.gql @@ -5,3 +5,8 @@ extend type ShotGQL { startTime: Float! endTime: Float! } + +extend type UploadStreamGQL { + segmentDurations: [Float!]! + segmentStartFrames: [Int!]! +} diff --git a/src/index.tsx b/src/index.tsx index a3d1e25..807eac7 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -2164,7 +2164,9 @@ export type UploadStreamGql = { linksRequested: Scalars["Int"]["output"]; lowestUnuploadedSegmentIndex: Scalars["Int"]["output"]; resolution: VideoResolutionGql; + segmentDurations: Array; segmentProcessingCursor: Scalars["Int"]["output"]; + segmentStartFrames: Array; segments: Array; streamSegmentType: StreamSegmentTypeEnum; updatedAt: Scalars["DateTime"]["output"]; @@ -3117,6 +3119,8 @@ export type GetVideoForClipTimesQuery = { __typename?: "UploadStreamGQL"; id: string; streamSegmentType: StreamSegmentTypeEnum; + segmentDurations: Array; + segmentStartFrames: Array; segments: Array<{ __typename?: "UploadSegmentGQL"; uploaded: boolean; @@ -5495,6 +5499,8 @@ export const GetVideoForClipTimesDocument = gql` stream { id streamSegmentType + segmentDurations + segmentStartFrames segments { uploaded valid diff --git a/src/operations/video.gql b/src/operations/video.gql index f37ad30..364e563 100644 --- a/src/operations/video.gql +++ b/src/operations/video.gql @@ -145,6 +145,7 @@ query GetVideoForShotTime($videoId: Int!) { ...VideoStreamMetadata } } + query GetVideo($videoId: Int!) { getVideo(videoId: $videoId) { id @@ -213,12 +214,14 @@ query GetAverageTimePerShotForVideo($videoId: Int!) { averageTimeBetweenShots } } + query GetElapsedTimeForVideo($videoId: Int!) { getVideo(videoId: $videoId) { id elapsedTime } } + query GetMedianRunForVideo($videoId: Int!) { getVideo(videoId: $videoId) { id @@ -236,6 +239,8 @@ query GetVideoForClipTimes($videoId: Int!) { stream { id streamSegmentType + segmentDurations + segmentStartFrames segments { uploaded valid