Add upload to video gql

This commit is contained in:
Kat Huang 2024-04-30 21:55:48 -06:00
parent 527113a099
commit 2f92820895
2 changed files with 23 additions and 0 deletions

View File

@ -358,6 +358,17 @@ export type TargetMetricsGql = {
makePercentage?: Maybe<Scalars["Float"]["output"]>; makePercentage?: Maybe<Scalars["Float"]["output"]>;
}; };
export type UploadSegmentGql = {
__typename?: "UploadSegmentGQL";
durationsInSeconds?: Maybe<Scalars["Float"]["output"]>;
endFrameIndex?: Maybe<Scalars["Int"]["output"]>;
framesPerSecond?: Maybe<Scalars["Float"]["output"]>;
linksRequested: Scalars["Int"]["output"];
segmentIndex: Scalars["Int"]["output"];
uploaded: Scalars["Boolean"]["output"];
valid: Scalars["Boolean"]["output"];
};
export type UploadStreamGql = { export type UploadStreamGql = {
__typename?: "UploadStreamGQL"; __typename?: "UploadStreamGQL";
createdAt: Scalars["DateTime"]["output"]; createdAt: Scalars["DateTime"]["output"];
@ -369,6 +380,7 @@ export type UploadStreamGql = {
lowestUnuploadedSegmentIndex: Scalars["Int"]["output"]; lowestUnuploadedSegmentIndex: Scalars["Int"]["output"];
segmentProcessingCursor: Scalars["Int"]["output"]; segmentProcessingCursor: Scalars["Int"]["output"];
updatedAt: Scalars["DateTime"]["output"]; updatedAt: Scalars["DateTime"]["output"];
uploadSegments: Array<UploadSegmentGql>;
uploadsCompleted: Scalars["Int"]["output"]; uploadsCompleted: Scalars["Int"]["output"];
}; };

View File

@ -227,12 +227,23 @@ type UploadStreamGQL {
errors: [StreamErrorGQL!]! errors: [StreamErrorGQL!]!
createdAt: DateTime! createdAt: DateTime!
updatedAt: DateTime! updatedAt: DateTime!
uploadSegments: [UploadSegmentGQL!]!
} }
type StreamErrorGQL { type StreamErrorGQL {
message: String! message: String!
} }
type UploadSegmentGQL {
segmentIndex: Int!
uploaded: Boolean!
valid: Boolean!
endFrameIndex: Int
framesPerSecond: Float
durationsInSeconds: Float
linksRequested: Int!
}
type HLSPlaylistGQL { type HLSPlaylistGQL {
videoId: Int! videoId: Int!
m3u8Text: String! m3u8Text: String!