Create get videos with playlist gql
This commit is contained in:
parent
24fcac9318
commit
5181612f62
@ -153,6 +153,13 @@ export type GetUploadLinkReturn = {
|
||||
uploadUrl: Scalars["String"]["output"];
|
||||
};
|
||||
|
||||
export type HlsPlaylistGql = {
|
||||
__typename?: "HLSPlaylistGQL";
|
||||
m3u8Text: Scalars["String"]["output"];
|
||||
segmentDurations: Array<Scalars["Float"]["output"]>;
|
||||
videoId: Scalars["Int"]["output"];
|
||||
};
|
||||
|
||||
export type Header = {
|
||||
__typename?: "Header";
|
||||
key: Scalars["String"]["output"];
|
||||
@ -271,6 +278,7 @@ export type Query = {
|
||||
getUserVideos: VideoHistoryGql;
|
||||
getVideo: VideoGql;
|
||||
getVideoMakePercentageIntervals: Array<MakePercentageIntervalGql>;
|
||||
getVideos: Array<VideoGql>;
|
||||
};
|
||||
|
||||
export type QueryGetAggregatedShotMetricsArgs = {
|
||||
@ -309,6 +317,10 @@ export type QueryGetVideoMakePercentageIntervalsArgs = {
|
||||
videoId: Scalars["ID"]["input"];
|
||||
};
|
||||
|
||||
export type QueryGetVideosArgs = {
|
||||
videoIds: Array<Scalars["Int"]["input"]>;
|
||||
};
|
||||
|
||||
export type RangeFilter = {
|
||||
greaterThanEqualTo?: InputMaybe<Scalars["Float"]["input"]>;
|
||||
lessThan?: InputMaybe<Scalars["Float"]["input"]>;
|
||||
@ -402,6 +414,7 @@ export type VideoGql = {
|
||||
medianRun?: Maybe<Scalars["Float"]["output"]>;
|
||||
name?: Maybe<Scalars["String"]["output"]>;
|
||||
owner?: Maybe<UserGql>;
|
||||
playlist?: Maybe<HlsPlaylistGql>;
|
||||
shots: Array<ShotGql>;
|
||||
startTime?: Maybe<Scalars["DateTime"]["output"]>;
|
||||
stream?: Maybe<UploadStreamGql>;
|
||||
|
@ -102,3 +102,70 @@ query GetVideoDetails($videoId: Int!) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
query GetVideos($videoIds: [Int!]!) {
|
||||
getVideos(videoIds: $videoIds) {
|
||||
id
|
||||
name
|
||||
totalShotsMade
|
||||
totalShots
|
||||
makePercentage
|
||||
medianRun
|
||||
averageTimeBetweenShots
|
||||
createdAt
|
||||
updatedAt
|
||||
start_time
|
||||
end_time
|
||||
elapsed_time
|
||||
frames_per_second
|
||||
owner {
|
||||
id
|
||||
firebaseUid
|
||||
username
|
||||
profileImageUri
|
||||
}
|
||||
tags {
|
||||
tagClasses {
|
||||
name
|
||||
}
|
||||
name
|
||||
}
|
||||
playlist {
|
||||
video_id
|
||||
m3u8_text
|
||||
segment_durations
|
||||
}
|
||||
shots {
|
||||
id
|
||||
timeOffset
|
||||
coordinates
|
||||
}
|
||||
homography_history {
|
||||
frame_index
|
||||
crop {
|
||||
x1
|
||||
y1
|
||||
x2
|
||||
y2
|
||||
}
|
||||
pockets {
|
||||
x1
|
||||
y1
|
||||
x2
|
||||
y2
|
||||
}
|
||||
source_points {
|
||||
topLeft
|
||||
topRight
|
||||
bottomLeft
|
||||
bottomRight
|
||||
}
|
||||
dest_points {
|
||||
topLeft
|
||||
topRight
|
||||
bottomLeft
|
||||
bottomRight
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -19,6 +19,7 @@ type Query {
|
||||
filters: VideoFilterInput = null
|
||||
): VideoHistoryGQL!
|
||||
getVideo(videoId: Int!): VideoGQL!
|
||||
getVideos(videoIds: [Int!]!): [VideoGQL!]!
|
||||
}
|
||||
|
||||
type AggregateResultGQL {
|
||||
@ -207,6 +208,7 @@ type VideoGQL {
|
||||
elapsedTime: Float
|
||||
framesPerSecond: Int!
|
||||
stream: UploadStreamGQL
|
||||
playlist: HLSPlaylistGQL
|
||||
tags: [VideoTag!]!
|
||||
homographyHistory: [HomographyInfoGQL!]!
|
||||
}
|
||||
@ -227,6 +229,12 @@ type StreamErrorGQL {
|
||||
message: String!
|
||||
}
|
||||
|
||||
type HLSPlaylistGQL {
|
||||
videoId: Int!
|
||||
m3u8Text: String!
|
||||
segmentDurations: [Float!]!
|
||||
}
|
||||
|
||||
type VideoTag {
|
||||
tagClasses: [VideoTagClass!]!
|
||||
name: String!
|
||||
|
Loading…
Reference in New Issue
Block a user