From a4f602d651830a304444b6e420cc850f7795b715 Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Thu, 25 Jul 2024 18:18:16 -0600 Subject: [PATCH] Expose resolution --- src/index.tsx | 7 +++++++ src/schema.gql | 6 ++++++ 2 files changed, 13 insertions(+) diff --git a/src/index.tsx b/src/index.tsx index e10cf75..ccab474 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -1265,6 +1265,7 @@ export type UploadStreamGql = { lastIntendedSegmentBound?: Maybe; linksRequested: Scalars["Int"]["output"]; lowestUnuploadedSegmentIndex: Scalars["Int"]["output"]; + resolution: VideoResolutionGql; segmentProcessingCursor: Scalars["Int"]["output"]; segments: Array; updatedAt: Scalars["DateTime"]["output"]; @@ -1368,6 +1369,12 @@ export type VideoResolution = { width: Scalars["Int"]["input"]; }; +export type VideoResolutionGql = { + __typename?: "VideoResolutionGQL"; + height?: Maybe; + width?: Maybe; +}; + export type VideoTag = { __typename?: "VideoTag"; name: Scalars["String"]["output"]; diff --git a/src/schema.gql b/src/schema.gql index befb332..9ec5512 100644 --- a/src/schema.gql +++ b/src/schema.gql @@ -273,6 +273,7 @@ type UploadStreamGQL { createdAt: DateTime! updatedAt: DateTime! segments: [UploadSegmentGQL!]! + resolution: VideoResolutionGQL! } enum InitPlaylistUploadStatusEnum { @@ -295,6 +296,11 @@ type UploadSegmentGQL { linksRequested: Int! } +type VideoResolutionGQL { + width: Int + height: Int +} + type HLSPlaylistGQL { videoId: Int! m3u8Text: String!