GQL for caching hack

This commit is contained in:
Ivan Malison 2024-10-17 01:28:14 -06:00
parent 9dc426ea0f
commit 8d1f79b8a8
3 changed files with 61 additions and 0 deletions

View File

@ -13,3 +13,13 @@ extend type UploadStreamGQL {
extend type HLSPlaylistGQL { extend type HLSPlaylistGQL {
segmentStartTimes: [Float!]! segmentStartTimes: [Float!]!
} }
type SegmentEndFramesGQL {
id: Int!
segmentEndFrames: [Int!]!
}
type SegmentStartTimesGQL {
id: Int!
segmentStartTimes: [Float!]!
}

View File

@ -1976,6 +1976,18 @@ export type SegmentAlreadyUploadedErr = {
segmentId: Scalars["Int"]["output"]; segmentId: Scalars["Int"]["output"];
}; };
export type SegmentEndFramesGql = {
__typename?: "SegmentEndFramesGQL";
id: Scalars["Int"]["output"];
segmentEndFrames: Array<Scalars["Int"]["output"]>;
};
export type SegmentStartTimesGql = {
__typename?: "SegmentStartTimesGQL";
id: Scalars["Int"]["output"];
segmentStartTimes: Array<Scalars["Float"]["output"]>;
};
export type SerializedShotPathsGql = { export type SerializedShotPathsGql = {
__typename?: "SerializedShotPathsGQL"; __typename?: "SerializedShotPathsGQL";
b64EncodedBuffer?: Maybe<Scalars["String"]["output"]>; b64EncodedBuffer?: Maybe<Scalars["String"]["output"]>;
@ -3073,8 +3085,21 @@ export type StreamWithEndFramesFragment = {
}>; }>;
}; };
export type SegmentEndFramesFragment = {
__typename?: "SegmentEndFramesGQL";
id: number;
segmentEndFrames: Array<number>;
};
export type SegmentStartTimesFragment = {
__typename?: "SegmentStartTimesGQL";
id: number;
segmentStartTimes: Array<number>;
};
export type PlaylistWithSegmentStartTimesFragment = { export type PlaylistWithSegmentStartTimesFragment = {
__typename?: "HLSPlaylistGQL"; __typename?: "HLSPlaylistGQL";
videoId: number;
segmentDurations: Array<number>; segmentDurations: Array<number>;
segmentStartTimes: Array<number>; segmentStartTimes: Array<number>;
}; };
@ -3085,6 +3110,7 @@ export type VideoDurationDataFragment = {
framesPerSecond: number; framesPerSecond: number;
playlist?: { playlist?: {
__typename?: "HLSPlaylistGQL"; __typename?: "HLSPlaylistGQL";
videoId: number;
segmentDurations: Array<number>; segmentDurations: Array<number>;
segmentStartTimes: Array<number>; segmentStartTimes: Array<number>;
} | null; } | null;
@ -3121,6 +3147,7 @@ export type GetVideoForClipTimesQuery = {
framesPerSecond: number; framesPerSecond: number;
playlist?: { playlist?: {
__typename?: "HLSPlaylistGQL"; __typename?: "HLSPlaylistGQL";
videoId: number;
segmentDurations: Array<number>; segmentDurations: Array<number>;
segmentStartTimes: Array<number>; segmentStartTimes: Array<number>;
} | null; } | 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` export const PlaylistWithSegmentStartTimesFragmentDoc = gql`
fragment PlaylistWithSegmentStartTimes on HLSPlaylistGQL { fragment PlaylistWithSegmentStartTimes on HLSPlaylistGQL {
videoId
segmentDurations segmentDurations
segmentStartTimes @client segmentStartTimes @client
} }

View File

@ -246,7 +246,18 @@ fragment StreamWithEndFrames on UploadStreamGQL {
} }
} }
fragment SegmentEndFrames on SegmentEndFramesGQL {
id
segmentEndFrames
}
fragment SegmentStartTimes on SegmentStartTimesGQL {
id
segmentStartTimes
}
fragment PlaylistWithSegmentStartTimes on HLSPlaylistGQL { fragment PlaylistWithSegmentStartTimes on HLSPlaylistGQL {
videoId
segmentDurations segmentDurations
segmentStartTimes @client segmentStartTimes @client
} }