Move segment start times

This commit is contained in:
Ivan Malison 2024-10-16 18:52:18 -06:00
parent ae97f956b3
commit 19a63b9d19
3 changed files with 13 additions and 10 deletions

View File

@ -7,6 +7,9 @@ extend type ShotGQL {
} }
extend type UploadStreamGQL { extend type UploadStreamGQL {
segmentDurations: [Float!]! segmentEndFrames: [Int!]!
segmentStartFrames: [Int!]! }
extend type HLSPlaylistGQL {
segmentStartTimes: [Float!]!
} }

View File

@ -1677,6 +1677,7 @@ export type HlsPlaylistGql = {
__typename?: "HLSPlaylistGQL"; __typename?: "HLSPlaylistGQL";
m3u8Text: Scalars["String"]["output"]; m3u8Text: Scalars["String"]["output"];
segmentDurations: Array<Scalars["Float"]["output"]>; segmentDurations: Array<Scalars["Float"]["output"]>;
segmentStartTimes: Array<Scalars["Float"]["output"]>;
videoId: Scalars["Int"]["output"]; videoId: Scalars["Int"]["output"];
}; };
@ -2164,9 +2165,8 @@ export type UploadStreamGql = {
linksRequested: Scalars["Int"]["output"]; linksRequested: Scalars["Int"]["output"];
lowestUnuploadedSegmentIndex: Scalars["Int"]["output"]; lowestUnuploadedSegmentIndex: Scalars["Int"]["output"];
resolution: VideoResolutionGql; resolution: VideoResolutionGql;
segmentDurations: Array<Scalars["Float"]["output"]>; segmentEndFrames: Array<Scalars["Int"]["output"]>;
segmentProcessingCursor: Scalars["Int"]["output"]; segmentProcessingCursor: Scalars["Int"]["output"];
segmentStartFrames: Array<Scalars["Int"]["output"]>;
segments: Array<UploadSegmentGql>; segments: Array<UploadSegmentGql>;
streamSegmentType: StreamSegmentTypeEnum; streamSegmentType: StreamSegmentTypeEnum;
updatedAt: Scalars["DateTime"]["output"]; updatedAt: Scalars["DateTime"]["output"];
@ -3114,13 +3114,13 @@ export type GetVideoForClipTimesQuery = {
playlist?: { playlist?: {
__typename?: "HLSPlaylistGQL"; __typename?: "HLSPlaylistGQL";
segmentDurations: Array<number>; segmentDurations: Array<number>;
segmentStartTimes: Array<number>;
} | null; } | null;
stream?: { stream?: {
__typename?: "UploadStreamGQL"; __typename?: "UploadStreamGQL";
id: string; id: string;
streamSegmentType: StreamSegmentTypeEnum; streamSegmentType: StreamSegmentTypeEnum;
segmentDurations: Array<number>; segmentEndFrames: Array<number>;
segmentStartFrames: Array<number>;
segments: Array<{ segments: Array<{
__typename?: "UploadSegmentGQL"; __typename?: "UploadSegmentGQL";
uploaded: boolean; uploaded: boolean;
@ -5495,12 +5495,12 @@ export const GetVideoForClipTimesDocument = gql`
framesPerSecond framesPerSecond
playlist { playlist {
segmentDurations segmentDurations
segmentStartTimes
} }
stream { stream {
id id
streamSegmentType streamSegmentType
segmentDurations segmentEndFrames
segmentStartFrames
segments { segments {
uploaded uploaded
valid valid

View File

@ -235,12 +235,12 @@ query GetVideoForClipTimes($videoId: Int!) {
framesPerSecond framesPerSecond
playlist { playlist {
segmentDurations segmentDurations
segmentStartTimes
} }
stream { stream {
id id
streamSegmentType streamSegmentType
segmentDurations segmentEndFrames
segmentStartFrames
segments { segments {
uploaded uploaded
valid valid