From af38fdea6464fb5bca241e52c9130203962f3a08 Mon Sep 17 00:00:00 2001 From: Kat Huang Date: Mon, 26 Aug 2024 06:56:40 -0600 Subject: [PATCH] Add stream type to get videos --- src/index.tsx | 16 +++++++++------- src/operations/video.gql | 7 ++++--- 2 files changed, 13 insertions(+), 10 deletions(-) diff --git a/src/index.tsx b/src/index.tsx index cd67860..07c7eb9 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -1995,13 +1995,10 @@ export type GetVideosQuery = { getVideos: Array<{ __typename?: "VideoGQL"; id: number; - playlist?: { - __typename?: "HLSPlaylistGQL"; - segmentDurations: Array; - } | null; stream?: { __typename?: "UploadStreamGQL"; id: string; + streamSegmentType: StreamSegmentTypeEnum; segments: Array<{ __typename?: "UploadSegmentGQL"; uploaded: boolean; @@ -2011,6 +2008,10 @@ export type GetVideosQuery = { framesPerSecond?: number | null; }>; } | null; + playlist?: { + __typename?: "HLSPlaylistGQL"; + segmentDurations: Array; + } | null; }>; }; @@ -3548,11 +3549,9 @@ export const GetVideosDocument = gql` query GetVideos($videoIds: [Int!]!) { getVideos(videoIds: $videoIds) { id - playlist { - segmentDurations - } stream { id + streamSegmentType segments { uploaded valid @@ -3561,6 +3560,9 @@ export const GetVideosDocument = gql` framesPerSecond } } + playlist { + segmentDurations + } } } `; diff --git a/src/operations/video.gql b/src/operations/video.gql index 0729041..d47ab35 100644 --- a/src/operations/video.gql +++ b/src/operations/video.gql @@ -118,11 +118,9 @@ query GetVideoDetails($videoId: Int!) { query GetVideos($videoIds: [Int!]!) { getVideos(videoIds: $videoIds) { id - playlist { - segmentDurations - } stream { id + streamSegmentType segments { uploaded valid @@ -131,6 +129,9 @@ query GetVideos($videoIds: [Int!]!) { framesPerSecond } } + playlist { + segmentDurations + } } }