Add streamSegmentType to Stream

This commit is contained in:
Ivan Malison 2024-07-27 20:51:48 -06:00
parent 251ebe7056
commit 378878967a
3 changed files with 10 additions and 5 deletions

View File

@ -1268,6 +1268,7 @@ export type UploadStreamGql = {
resolution: VideoResolutionGql; resolution: VideoResolutionGql;
segmentProcessingCursor: Scalars["Int"]["output"]; segmentProcessingCursor: Scalars["Int"]["output"];
segments: Array<UploadSegmentGql>; segments: Array<UploadSegmentGql>;
streamSegmentType: StreamSegmentTypeEnum;
updatedAt: Scalars["DateTime"]["output"]; updatedAt: Scalars["DateTime"]["output"];
uploadCompletionCursor: Scalars["Int"]["output"]; uploadCompletionCursor: Scalars["Int"]["output"];
uploadsCompleted: Scalars["Int"]["output"]; uploadsCompleted: Scalars["Int"]["output"];
@ -1808,6 +1809,7 @@ export type GetVideoQuery = {
}>; }>;
stream?: { stream?: {
__typename?: "UploadStreamGQL"; __typename?: "UploadStreamGQL";
streamSegmentType: StreamSegmentTypeEnum;
segments: Array<{ segments: Array<{
__typename?: "UploadSegmentGQL"; __typename?: "UploadSegmentGQL";
segmentIndex: number; segmentIndex: number;
@ -3325,6 +3327,7 @@ export const GetVideoDocument = gql`
} }
} }
stream { stream {
streamSegmentType
segments { segments {
segmentIndex segmentIndex
endFrameIndex endFrameIndex

View File

@ -179,6 +179,7 @@ query GetVideo($videoId: Int!) {
} }
} }
stream { stream {
streamSegmentType
segments { segments {
segmentIndex segmentIndex
endFrameIndex endFrameIndex

View File

@ -274,6 +274,7 @@ type UploadStreamGQL {
updatedAt: DateTime! updatedAt: DateTime!
segments: [UploadSegmentGQL!]! segments: [UploadSegmentGQL!]!
resolution: VideoResolutionGQL! resolution: VideoResolutionGQL!
streamSegmentType: StreamSegmentTypeEnum!
} }
enum InitPlaylistUploadStatusEnum { enum InitPlaylistUploadStatusEnum {
@ -301,6 +302,11 @@ type VideoResolutionGQL {
height: Int height: Int
} }
enum StreamSegmentTypeEnum {
FRAGMENTED_MP4
RB_CHUNKED_MP4
}
type HLSPlaylistGQL { type HLSPlaylistGQL {
videoId: Int! videoId: Int!
m3u8Text: String! m3u8Text: String!
@ -442,11 +448,6 @@ enum DeviceTypeEnum {
BROWSER BROWSER
} }
enum StreamSegmentTypeEnum {
FRAGMENTED_MP4
RB_CHUNKED_MP4
}
input VideoResolution { input VideoResolution {
width: Int! width: Int!
height: Int! height: Int!