Add segmentDurations and segmentStartFrames

This commit is contained in:
Ivan Malison 2024-10-16 16:46:29 -06:00
parent d619751144
commit ae97f956b3
3 changed files with 16 additions and 0 deletions

View File

@ -5,3 +5,8 @@ extend type ShotGQL {
startTime: Float!
endTime: Float!
}
extend type UploadStreamGQL {
segmentDurations: [Float!]!
segmentStartFrames: [Int!]!
}

View File

@ -2164,7 +2164,9 @@ export type UploadStreamGql = {
linksRequested: Scalars["Int"]["output"];
lowestUnuploadedSegmentIndex: Scalars["Int"]["output"];
resolution: VideoResolutionGql;
segmentDurations: Array<Scalars["Float"]["output"]>;
segmentProcessingCursor: Scalars["Int"]["output"];
segmentStartFrames: Array<Scalars["Int"]["output"]>;
segments: Array<UploadSegmentGql>;
streamSegmentType: StreamSegmentTypeEnum;
updatedAt: Scalars["DateTime"]["output"];
@ -3117,6 +3119,8 @@ export type GetVideoForClipTimesQuery = {
__typename?: "UploadStreamGQL";
id: string;
streamSegmentType: StreamSegmentTypeEnum;
segmentDurations: Array<number>;
segmentStartFrames: Array<number>;
segments: Array<{
__typename?: "UploadSegmentGQL";
uploaded: boolean;
@ -5495,6 +5499,8 @@ export const GetVideoForClipTimesDocument = gql`
stream {
id
streamSegmentType
segmentDurations
segmentStartFrames
segments {
uploaded
valid

View File

@ -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