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"]>;
};
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 = {
__typename?: "UploadStreamGQL";
createdAt: Scalars["DateTime"]["output"];
@ -369,6 +380,7 @@ export type UploadStreamGql = {
lowestUnuploadedSegmentIndex: Scalars["Int"]["output"];
segmentProcessingCursor: Scalars["Int"]["output"];
updatedAt: Scalars["DateTime"]["output"];
uploadSegments: Array<UploadSegmentGql>;
uploadsCompleted: Scalars["Int"]["output"];
};

View File

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