diff --git a/src/client-schema.gql b/src/client-schema.gql index 1e9d5a5..22b5acf 100644 --- a/src/client-schema.gql +++ b/src/client-schema.gql @@ -13,3 +13,13 @@ extend type UploadStreamGQL { extend type HLSPlaylistGQL { segmentStartTimes: [Float!]! } + +type SegmentEndFramesGQL { + id: Int! + segmentEndFrames: [Int!]! +} + +type SegmentStartTimesGQL { + id: Int! + segmentStartTimes: [Float!]! +} diff --git a/src/index.tsx b/src/index.tsx index 78d67ce..e6ae168 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -1976,6 +1976,18 @@ export type SegmentAlreadyUploadedErr = { segmentId: Scalars["Int"]["output"]; }; +export type SegmentEndFramesGql = { + __typename?: "SegmentEndFramesGQL"; + id: Scalars["Int"]["output"]; + segmentEndFrames: Array; +}; + +export type SegmentStartTimesGql = { + __typename?: "SegmentStartTimesGQL"; + id: Scalars["Int"]["output"]; + segmentStartTimes: Array; +}; + export type SerializedShotPathsGql = { __typename?: "SerializedShotPathsGQL"; b64EncodedBuffer?: Maybe; @@ -3073,8 +3085,21 @@ export type StreamWithEndFramesFragment = { }>; }; +export type SegmentEndFramesFragment = { + __typename?: "SegmentEndFramesGQL"; + id: number; + segmentEndFrames: Array; +}; + +export type SegmentStartTimesFragment = { + __typename?: "SegmentStartTimesGQL"; + id: number; + segmentStartTimes: Array; +}; + export type PlaylistWithSegmentStartTimesFragment = { __typename?: "HLSPlaylistGQL"; + videoId: number; segmentDurations: Array; segmentStartTimes: Array; }; @@ -3085,6 +3110,7 @@ export type VideoDurationDataFragment = { framesPerSecond: number; playlist?: { __typename?: "HLSPlaylistGQL"; + videoId: number; segmentDurations: Array; segmentStartTimes: Array; } | null; @@ -3121,6 +3147,7 @@ export type GetVideoForClipTimesQuery = { framesPerSecond: number; playlist?: { __typename?: "HLSPlaylistGQL"; + videoId: number; segmentDurations: Array; segmentStartTimes: Array; } | null; @@ -3391,8 +3418,21 @@ export const VideoStreamMetadataFragmentDoc = gql` } } `; +export const SegmentEndFramesFragmentDoc = gql` + fragment SegmentEndFrames on SegmentEndFramesGQL { + id + segmentEndFrames + } +`; +export const SegmentStartTimesFragmentDoc = gql` + fragment SegmentStartTimes on SegmentStartTimesGQL { + id + segmentStartTimes + } +`; export const PlaylistWithSegmentStartTimesFragmentDoc = gql` fragment PlaylistWithSegmentStartTimes on HLSPlaylistGQL { + videoId segmentDurations segmentStartTimes @client } diff --git a/src/operations/video.gql b/src/operations/video.gql index 5d44ff8..724d791 100644 --- a/src/operations/video.gql +++ b/src/operations/video.gql @@ -246,7 +246,18 @@ fragment StreamWithEndFrames on UploadStreamGQL { } } +fragment SegmentEndFrames on SegmentEndFramesGQL { + id + segmentEndFrames +} + +fragment SegmentStartTimes on SegmentStartTimesGQL { + id + segmentStartTimes +} + fragment PlaylistWithSegmentStartTimes on HLSPlaylistGQL { + videoId segmentDurations segmentStartTimes @client }