Compare commits
12 Commits
80f609b8a2
...
micah/add-
| Author | SHA1 | Date | |
|---|---|---|---|
| 0999c88797 | |||
| d3559ede21 | |||
| ef6ccca3f9 | |||
| f781e9648f | |||
| 18d2eea029 | |||
| a95bdab8bf | |||
| eaeb1ed0ea | |||
| f9d6377fe4 | |||
| 30cf72de78 | |||
| fd49dec34c | |||
| cdd1cdd526 | |||
| bce363e8ff |
1
.gitignore
vendored
1
.gitignore
vendored
@@ -3,3 +3,4 @@ dist
|
||||
.direnv
|
||||
/after.txt
|
||||
/before.txt
|
||||
**/__pycache__/**
|
||||
|
||||
@@ -906,7 +906,7 @@ export type MutationSetLoggerLevelArgs = {
|
||||
|
||||
export type MutationSetSegmentDurationArgs = {
|
||||
duration: Scalars["Float"]["input"];
|
||||
segmentId: Scalars["Int"]["input"];
|
||||
segmentIndex: Scalars["Int"]["input"];
|
||||
videoId: Scalars["Int"]["input"];
|
||||
};
|
||||
|
||||
@@ -1073,7 +1073,7 @@ export type TargetMetricsGql = {
|
||||
|
||||
export type UploadSegmentGql = {
|
||||
__typename?: "UploadSegmentGQL";
|
||||
durationsInSeconds?: Maybe<Scalars["Float"]["output"]>;
|
||||
durationInSeconds?: Maybe<Scalars["Float"]["output"]>;
|
||||
endFrameIndex?: Maybe<Scalars["Int"]["output"]>;
|
||||
framesPerSecond?: Maybe<Scalars["Float"]["output"]>;
|
||||
linksRequested: Scalars["Int"]["output"];
|
||||
@@ -1167,8 +1167,10 @@ export type VideoHistoryGql = {
|
||||
export type VideoMetadataInput = {
|
||||
endStream?: Scalars["Boolean"]["input"];
|
||||
endTime?: InputMaybe<Scalars["DateTime"]["input"]>;
|
||||
framesPerSecond?: InputMaybe<Scalars["Float"]["input"]>;
|
||||
gameType?: InputMaybe<Scalars["String"]["input"]>;
|
||||
lastIntendedSegmentBound?: InputMaybe<Scalars["Int"]["input"]>;
|
||||
resolution: VideoResolution;
|
||||
startTime?: InputMaybe<Scalars["DateTime"]["input"]>;
|
||||
streamSegmentType?: InputMaybe<StreamSegmentTypeEnum>;
|
||||
tableSize?: InputMaybe<Scalars["String"]["input"]>;
|
||||
@@ -1188,6 +1190,11 @@ export type VideoProcessingGql = {
|
||||
errors: Array<VideoProcessingErrorGql>;
|
||||
};
|
||||
|
||||
export type VideoResolution = {
|
||||
height: Scalars["Int"]["input"];
|
||||
width: Scalars["Int"]["input"];
|
||||
};
|
||||
|
||||
export type VideoTag = {
|
||||
__typename?: "VideoTag";
|
||||
name: Scalars["String"]["output"];
|
||||
@@ -1472,6 +1479,7 @@ export type GetStreamMonitoringDetailsQuery = {
|
||||
isCompleted: boolean;
|
||||
uploadCompletionCursor: number;
|
||||
lastIntendedSegmentBound?: number | null;
|
||||
initPlaylistUploadStatus?: InitPlaylistUploadStatusEnum | null;
|
||||
} | null;
|
||||
currentProcessing?: {
|
||||
__typename?: "VideoProcessingGQL";
|
||||
@@ -1688,7 +1696,7 @@ export type GetHlsInitUploadLinkMutation = {
|
||||
|
||||
export type SetSegmentDurationMutationVariables = Exact<{
|
||||
videoId: Scalars["Int"]["input"];
|
||||
segmentId: Scalars["Int"]["input"];
|
||||
segmentIndex: Scalars["Int"]["input"];
|
||||
duration: Scalars["Float"]["input"];
|
||||
}>;
|
||||
|
||||
@@ -2671,6 +2679,7 @@ export const GetStreamMonitoringDetailsDocument = gql`
|
||||
isCompleted
|
||||
uploadCompletionCursor
|
||||
lastIntendedSegmentBound
|
||||
initPlaylistUploadStatus
|
||||
}
|
||||
currentProcessing {
|
||||
errors {
|
||||
@@ -3519,12 +3528,12 @@ export type GetHlsInitUploadLinkMutationOptions = Apollo.BaseMutationOptions<
|
||||
export const SetSegmentDurationDocument = gql`
|
||||
mutation SetSegmentDuration(
|
||||
$videoId: Int!
|
||||
$segmentId: Int!
|
||||
$segmentIndex: Int!
|
||||
$duration: Float!
|
||||
) {
|
||||
setSegmentDuration(
|
||||
videoId: $videoId
|
||||
segmentId: $segmentId
|
||||
segmentIndex: $segmentIndex
|
||||
duration: $duration
|
||||
)
|
||||
}
|
||||
@@ -3548,7 +3557,7 @@ export type SetSegmentDurationMutationFn = Apollo.MutationFunction<
|
||||
* const [setSegmentDurationMutation, { data, loading, error }] = useSetSegmentDurationMutation({
|
||||
* variables: {
|
||||
* videoId: // value for 'videoId'
|
||||
* segmentId: // value for 'segmentId'
|
||||
* segmentIndex: // value for 'segmentIndex'
|
||||
* duration: // value for 'duration'
|
||||
* },
|
||||
* });
|
||||
|
||||
@@ -51,6 +51,7 @@ query GetStreamMonitoringDetails($videoId: Int!) {
|
||||
isCompleted
|
||||
uploadCompletionCursor
|
||||
lastIntendedSegmentBound
|
||||
initPlaylistUploadStatus
|
||||
}
|
||||
currentProcessing {
|
||||
errors {
|
||||
|
||||
@@ -26,12 +26,12 @@ mutation GetHlsInitUploadLink($videoId: Int!) {
|
||||
|
||||
mutation SetSegmentDuration(
|
||||
$videoId: Int!
|
||||
$segmentId: Int!
|
||||
$segmentIndex: Int!
|
||||
$duration: Float!
|
||||
) {
|
||||
setSegmentDuration(
|
||||
videoId: $videoId
|
||||
segmentId: $segmentId
|
||||
segmentIndex: $segmentIndex
|
||||
duration: $duration
|
||||
)
|
||||
}
|
||||
|
||||
@@ -287,7 +287,7 @@ type UploadSegmentGQL {
|
||||
valid: Boolean!
|
||||
endFrameIndex: Int
|
||||
framesPerSecond: Float
|
||||
durationsInSeconds: Float
|
||||
durationInSeconds: Float
|
||||
linksRequested: Int!
|
||||
}
|
||||
|
||||
@@ -365,7 +365,11 @@ type Mutation {
|
||||
): CreateUploadStreamReturn!
|
||||
getUploadLink(videoId: Int!, segmentIndex: Int!): GetUploadLinkReturn!
|
||||
getHlsInitUploadLink(videoId: Int!): GetUploadLinkReturn!
|
||||
setSegmentDuration(videoId: Int!, segmentId: Int!, duration: Float!): Boolean!
|
||||
setSegmentDuration(
|
||||
videoId: Int!
|
||||
segmentIndex: Int!
|
||||
duration: Float!
|
||||
): Boolean!
|
||||
editUploadStream(videoId: Int!, videoMetadata: VideoMetadataInput!): Boolean!
|
||||
deleteVideo(videoId: Int!): Boolean!
|
||||
}
|
||||
@@ -391,6 +395,7 @@ type CreateUploadStreamReturn {
|
||||
}
|
||||
|
||||
input VideoMetadataInput {
|
||||
resolution: VideoResolution!
|
||||
videoName: String = null
|
||||
startTime: DateTime = null
|
||||
endTime: DateTime = null
|
||||
@@ -400,6 +405,12 @@ input VideoMetadataInput {
|
||||
lastIntendedSegmentBound: Int = null
|
||||
streamSegmentType: StreamSegmentTypeEnum = null
|
||||
endStream: Boolean! = false
|
||||
framesPerSecond: Float = null
|
||||
}
|
||||
|
||||
input VideoResolution {
|
||||
width: Int!
|
||||
height: Int!
|
||||
}
|
||||
|
||||
input UploadStreamMetadataInput {
|
||||
|
||||
Reference in New Issue
Block a user