Add stream type to get videos #43

Merged
colonelpanic merged 1 commits from kat/add-stream-type-get-videos into master 2024-08-26 08:36:45 -06:00
2 changed files with 13 additions and 10 deletions

View File

@ -1995,13 +1995,10 @@ export type GetVideosQuery = {
getVideos: Array<{ getVideos: Array<{
__typename?: "VideoGQL"; __typename?: "VideoGQL";
id: number; id: number;
playlist?: {
__typename?: "HLSPlaylistGQL";
segmentDurations: Array<number>;
} | null;
stream?: { stream?: {
__typename?: "UploadStreamGQL"; __typename?: "UploadStreamGQL";
id: string; id: string;
streamSegmentType: StreamSegmentTypeEnum;
segments: Array<{ segments: Array<{
__typename?: "UploadSegmentGQL"; __typename?: "UploadSegmentGQL";
uploaded: boolean; uploaded: boolean;
@ -2011,6 +2008,10 @@ export type GetVideosQuery = {
framesPerSecond?: number | null; framesPerSecond?: number | null;
}>; }>;
} | null; } | null;
playlist?: {
__typename?: "HLSPlaylistGQL";
segmentDurations: Array<number>;
} | null;
}>; }>;
}; };
@ -3548,11 +3549,9 @@ export const GetVideosDocument = gql`
query GetVideos($videoIds: [Int!]!) { query GetVideos($videoIds: [Int!]!) {
getVideos(videoIds: $videoIds) { getVideos(videoIds: $videoIds) {
id id
playlist {
segmentDurations
}
stream { stream {
id id
streamSegmentType
segments { segments {
uploaded uploaded
valid valid
@ -3561,6 +3560,9 @@ export const GetVideosDocument = gql`
framesPerSecond framesPerSecond
} }
} }
playlist {
segmentDurations
}
} }
} }
`; `;

View File

@ -118,11 +118,9 @@ query GetVideoDetails($videoId: Int!) {
query GetVideos($videoIds: [Int!]!) { query GetVideos($videoIds: [Int!]!) {
getVideos(videoIds: $videoIds) { getVideos(videoIds: $videoIds) {
id id
playlist {
segmentDurations
}
stream { stream {
id id
streamSegmentType
segments { segments {
uploaded uploaded
valid valid
@ -131,6 +129,9 @@ query GetVideos($videoIds: [Int!]!) {
framesPerSecond framesPerSecond
} }
} }
playlist {
segmentDurations
}
} }
} }