Compare commits

...

10 Commits

Author SHA1 Message Date
5085c9af90 Add waitFor 2024-08-09 00:59:38 -06:00
85bc743c8e Bump getShots default 2024-08-05 23:36:54 -06:00
b8efa644e3 Merge pull request 'Add frameIndex in operation for getVideo in homographyHistory' (#29) from loewy/add-frame-index-in-homography-history into master
Reviewed-on: #29
Reviewed-by: Ivan Malison <ivanmalison@gmail.com>
2024-08-01 19:52:51 -06:00
c18628a4ca Add pagination to getShots 2024-08-01 19:49:57 -06:00
535e24c9c2 add frameindex in operations
All checks were successful
Tests / Tests (pull_request) Successful in 11s
2024-08-01 14:52:37 -07:00
04308b1003 Merge pull request 'Add addAnnotationToShot' (#28) from mk/add-add-annotation into master
Reviewed-on: #28
Reviewed-by: Ivan Malison <ivanmalison@gmail.com>
2024-07-30 18:10:44 -06:00
43c626141e Add addAnnotationToShot
All checks were successful
Tests / Tests (pull_request) Successful in 15s
2024-07-30 17:08:05 -07:00
c49266e4c1 Merge pull request 'Expose frames per second on video' (#27) from kat/add-video-duration into master
Reviewed-on: #27
2024-07-30 11:54:34 -06:00
6677b9232f Expose frames per second on video
All checks were successful
Tests / Tests (pull_request) Successful in 8s
2024-07-30 11:53:34 -06:00
76e792be88 Merge pull request 'Expose stream type on video' (#26) from kat/create-get-video-for-clip-calculation into master
Reviewed-on: #26
2024-07-30 01:02:18 -06:00
3 changed files with 56 additions and 10 deletions

View File

@@ -102,6 +102,10 @@ export type CreateUploadStreamReturn = {
videoId: Scalars["Int"]["output"];
};
export type CreatedAfter =
| { createdAt: Scalars["DateTime"]["input"]; videoId?: never }
| { createdAt?: never; videoId: Scalars["Int"]["input"] };
export type CueObjectFeaturesGql = {
__typename?: "CueObjectFeaturesGQL";
cueBallSpeed?: Maybe<Scalars["Float"]["output"]>;
@@ -1029,6 +1033,11 @@ export type FilterInput =
videoId: Array<Scalars["Int"]["input"]>;
};
export type GetShotsPagination = {
createdAfter: CreatedAfter;
startFrameAfter: Scalars["Int"]["input"];
};
export type GetUploadLinkReturn = {
__typename?: "GetUploadLinkReturn";
headers: Array<Maybe<Header>>;
@@ -1077,6 +1086,7 @@ export type MakePercentageIntervalGql = {
export type Mutation = {
__typename?: "Mutation";
addAnnotationToShot: Scalars["Boolean"]["output"];
createBucketSet: BucketSetGql;
createUploadStream: CreateUploadStreamReturn;
deleteVideo: Scalars["Boolean"]["output"];
@@ -1089,6 +1099,11 @@ export type Mutation = {
setSegmentDuration: Scalars["Boolean"]["output"];
};
export type MutationAddAnnotationToShotArgs = {
annotationName: Scalars["String"]["input"];
shotId: Scalars["Int"]["input"];
};
export type MutationCreateBucketSetArgs = {
params: CreateBucketSetInput;
};
@@ -1179,6 +1194,7 @@ export type Query = {
getVideo: VideoGql;
getVideoMakePercentageIntervals: Array<MakePercentageIntervalGql>;
getVideos: Array<VideoGql>;
waitFor: Scalars["Float"]["output"];
};
export type QueryGetAggregatedShotMetricsArgs = {
@@ -1195,6 +1211,8 @@ export type QueryGetPlayTimeArgs = {
export type QueryGetShotsArgs = {
filterInput: FilterInput;
limit?: Scalars["Int"]["input"];
shotsPagination?: InputMaybe<GetShotsPagination>;
};
export type QueryGetUserArgs = {
@@ -1227,6 +1245,10 @@ export type QueryGetVideosArgs = {
videoIds: Array<Scalars["Int"]["input"]>;
};
export type QueryWaitForArgs = {
duration: Scalars["Float"]["input"];
};
export type RangeFilter = {
greaterThanEqualTo?: InputMaybe<Scalars["Float"]["input"]>;
includeOnNone?: Scalars["Boolean"]["input"];
@@ -1278,6 +1300,7 @@ export type ShotGql = {
startFrame: Scalars["Int"]["output"];
updatedAt?: Maybe<Scalars["DateTime"]["output"]>;
user?: Maybe<UserGql>;
video?: Maybe<VideoGql>;
videoId: Scalars["Int"]["output"];
};
@@ -1845,6 +1868,7 @@ export type GetVideoQuery = {
} | null;
homographyHistory: Array<{
__typename?: "HomographyInfoGQL";
frameIndex: number;
crop: {
__typename?: "BoundingBoxGQL";
left: number;
@@ -1931,6 +1955,7 @@ export type GetVideoForClipTimesQuery = {
getVideo: {
__typename?: "VideoGQL";
id: number;
framesPerSecond: number;
playlist?: {
__typename?: "HLSPlaylistGQL";
segmentDurations: Array<number>;
@@ -3379,6 +3404,7 @@ export const GetVideoDocument = gql`
segmentDurations
}
homographyHistory {
frameIndex
crop {
left
top
@@ -3720,6 +3746,7 @@ export const GetVideoForClipTimesDocument = gql`
query GetVideoForClipTimes($videoId: Int!) {
getVideo(videoId: $videoId) {
id
framesPerSecond
playlist {
segmentDurations
}

View File

@@ -139,6 +139,7 @@ query GetVideo($videoId: Int!) {
segmentDurations
}
homographyHistory {
frameIndex
crop {
left
top
@@ -215,6 +216,7 @@ query GetMedianRunForVideo($videoId: Int!) {
query GetVideoForClipTimes($videoId: Int!) {
getVideo(videoId: $videoId) {
id
framesPerSecond
playlist {
segmentDurations
}

View File

@@ -4,11 +4,16 @@ type Query {
): [AggregateResultGQL!]!
getBucketSet(keyName: String!): BucketSetGQL
getDeployedConfig: DeployedConfigGQL!
waitFor(duration: Float!): Float!
getVideoMakePercentageIntervals(
videoId: ID!
intervalDuration: Int! = 300
): [MakePercentageIntervalGQL!]!
getShots(filterInput: FilterInput!): [ShotGQL!]!
getShots(
filterInput: FilterInput!
shotsPagination: GetShotsPagination = null
limit: Int! = 500
): [ShotGQL!]!
getShotAnnotationTypes: [ShotAnnotationTypeGQL!]!
getUser(userId: Int!): UserGQL
getLoggedInUser: UserGQL
@@ -168,6 +173,7 @@ type ShotGQL {
user: UserGQL
annotations: [ShotAnnotationGQL!]!
falsePositiveScore: Float
video: VideoGQL
}
"""
@@ -229,15 +235,6 @@ type ShotAnnotationTypeGQL {
name: String!
}
type UserPlayTimeGQL {
totalSeconds: Float!
}
type VideoHistoryGQL {
videos: [VideoGQL!]!
pageInfo: PageInfoGQL!
}
type VideoGQL {
id: Int!
owner: UserGQL
@@ -364,6 +361,25 @@ type VideoProcessingErrorGQL {
endSegmentIndex: Int
}
input GetShotsPagination {
createdAfter: CreatedAfter!
startFrameAfter: Int!
}
input CreatedAfter @oneOf {
videoId: Int
createdAt: DateTime
}
type UserPlayTimeGQL {
totalSeconds: Float!
}
type VideoHistoryGQL {
videos: [VideoGQL!]!
pageInfo: PageInfoGQL!
}
type PageInfoGQL {
hasNextPage: Boolean!
endCursor: String
@@ -383,6 +399,7 @@ type TagGQL {
type Mutation {
createBucketSet(params: CreateBucketSetInput!): BucketSetGQL!
setLoggerLevel(path: String!, level: String!): Boolean!
addAnnotationToShot(shotId: Int!, annotationName: String!): Boolean!
getProfileImageUploadLink(fileExt: String = ".png"): GetUploadLinkReturn!
editProfileImageUri(profileImageUri: String!): UserGQL!
createUploadStream(