Moar fragments!

This commit is contained in:
2024-10-16 23:39:14 -06:00
parent 19a63b9d19
commit 9dc426ea0f
3 changed files with 135 additions and 102 deletions

View File

@@ -229,26 +229,42 @@ query GetMedianRunForVideo($videoId: Int!) {
}
}
fragment StreamWithEndFrames on UploadStreamGQL {
id
streamSegmentType
segmentEndFrames @client
resolution {
width
height
}
segments {
uploaded
valid
segmentIndex
endFrameIndex
framesPerSecond
}
}
fragment PlaylistWithSegmentStartTimes on HLSPlaylistGQL {
segmentDurations
segmentStartTimes @client
}
fragment VideoDurationData on VideoGQL {
id
framesPerSecond
playlist {
...PlaylistWithSegmentStartTimes
}
stream {
...StreamWithEndFrames
}
}
query GetVideoForClipTimes($videoId: Int!) {
getVideo(videoId: $videoId) {
id
framesPerSecond
playlist {
segmentDurations
segmentStartTimes
}
stream {
id
streamSegmentType
segmentEndFrames
segments {
uploaded
valid
segmentIndex
endFrameIndex
framesPerSecond
}
}
...VideoDurationData
}
}