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 {
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"];
};
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 = {
__typename?: "SerializedShotPathsGQL";
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 = {
__typename?: "HLSPlaylistGQL";
videoId: number;
segmentDurations: Array<number>;
segmentStartTimes: Array<number>;
};
@ -3085,6 +3110,7 @@ export type VideoDurationDataFragment = {
framesPerSecond: number;
playlist?: {
__typename?: "HLSPlaylistGQL";
videoId: number;
segmentDurations: Array<number>;
segmentStartTimes: Array<number>;
} | null;
@ -3121,6 +3147,7 @@ export type GetVideoForClipTimesQuery = {
framesPerSecond: number;
playlist?: {
__typename?: "HLSPlaylistGQL";
videoId: number;
segmentDurations: Array<number>;
segmentStartTimes: Array<number>;
} | 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
}

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 {
videoId
segmentDurations
segmentStartTimes @client
}