From 378878967a55895728187a460d91fa8910196374 Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Sat, 27 Jul 2024 20:51:48 -0600 Subject: [PATCH] Add streamSegmentType to Stream --- src/index.tsx | 3 +++ src/operations/video.gql | 1 + src/schema.gql | 11 ++++++----- 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/src/index.tsx b/src/index.tsx index 9f79156..1f0d765 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -1268,6 +1268,7 @@ export type UploadStreamGql = { resolution: VideoResolutionGql; segmentProcessingCursor: Scalars["Int"]["output"]; segments: Array; + streamSegmentType: StreamSegmentTypeEnum; updatedAt: Scalars["DateTime"]["output"]; uploadCompletionCursor: Scalars["Int"]["output"]; uploadsCompleted: Scalars["Int"]["output"]; @@ -1808,6 +1809,7 @@ export type GetVideoQuery = { }>; stream?: { __typename?: "UploadStreamGQL"; + streamSegmentType: StreamSegmentTypeEnum; segments: Array<{ __typename?: "UploadSegmentGQL"; segmentIndex: number; @@ -3325,6 +3327,7 @@ export const GetVideoDocument = gql` } } stream { + streamSegmentType segments { segmentIndex endFrameIndex diff --git a/src/operations/video.gql b/src/operations/video.gql index cad4ec3..8173fda 100644 --- a/src/operations/video.gql +++ b/src/operations/video.gql @@ -179,6 +179,7 @@ query GetVideo($videoId: Int!) { } } stream { + streamSegmentType segments { segmentIndex endFrameIndex diff --git a/src/schema.gql b/src/schema.gql index 9ec5512..110e2c2 100644 --- a/src/schema.gql +++ b/src/schema.gql @@ -274,6 +274,7 @@ type UploadStreamGQL { updatedAt: DateTime! segments: [UploadSegmentGQL!]! resolution: VideoResolutionGQL! + streamSegmentType: StreamSegmentTypeEnum! } enum InitPlaylistUploadStatusEnum { @@ -301,6 +302,11 @@ type VideoResolutionGQL { height: Int } +enum StreamSegmentTypeEnum { + FRAGMENTED_MP4 + RB_CHUNKED_MP4 +} + type HLSPlaylistGQL { videoId: Int! m3u8Text: String! @@ -442,11 +448,6 @@ enum DeviceTypeEnum { BROWSER } -enum StreamSegmentTypeEnum { - FRAGMENTED_MP4 - RB_CHUNKED_MP4 -} - input VideoResolution { width: Int! height: Int!