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! startTime: Float!
endTime: Float! endTime: Float!
} }
extend type UploadStreamGQL {
segmentDurations: [Float!]!
segmentStartFrames: [Int!]!
}

View File

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

View File

@ -145,6 +145,7 @@ query GetVideoForShotTime($videoId: Int!) {
...VideoStreamMetadata ...VideoStreamMetadata
} }
} }
query GetVideo($videoId: Int!) { query GetVideo($videoId: Int!) {
getVideo(videoId: $videoId) { getVideo(videoId: $videoId) {
id id
@ -213,12 +214,14 @@ query GetAverageTimePerShotForVideo($videoId: Int!) {
averageTimeBetweenShots averageTimeBetweenShots
} }
} }
query GetElapsedTimeForVideo($videoId: Int!) { query GetElapsedTimeForVideo($videoId: Int!) {
getVideo(videoId: $videoId) { getVideo(videoId: $videoId) {
id id
elapsedTime elapsedTime
} }
} }
query GetMedianRunForVideo($videoId: Int!) { query GetMedianRunForVideo($videoId: Int!) {
getVideo(videoId: $videoId) { getVideo(videoId: $videoId) {
id id
@ -236,6 +239,8 @@ query GetVideoForClipTimes($videoId: Int!) {
stream { stream {
id id
streamSegmentType streamSegmentType
segmentDurations
segmentStartFrames
segments { segments {
uploaded uploaded
valid valid