2024-03-04 20:10:49 -07:00
|
|
|
mutation CreateUploadStream($videoMetadataInput: VideoMetadataInput!) {
|
|
|
|
createUploadStream(videoMetadata: $videoMetadataInput) {
|
2024-02-03 03:34:57 -07:00
|
|
|
videoId
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-02-11 22:44:18 -07:00
|
|
|
mutation GetUploadLink($videoId: Int!, $segmentIndex: Int!) {
|
2024-02-11 22:46:11 -07:00
|
|
|
getUploadLink(videoId: $videoId, segmentIndex: $segmentIndex) {
|
2024-02-03 03:34:57 -07:00
|
|
|
uploadUrl
|
2024-03-04 17:20:11 -08:00
|
|
|
headers {
|
|
|
|
key
|
|
|
|
value
|
|
|
|
}
|
2024-02-03 03:34:57 -07:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-07-15 17:29:55 -07:00
|
|
|
mutation GetHlsInitUploadLink($videoId: Int!) {
|
|
|
|
getHlsInitUploadLink(videoId: $videoId) {
|
|
|
|
uploadUrl
|
|
|
|
headers {
|
|
|
|
key
|
|
|
|
value
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-07-16 16:33:22 -07:00
|
|
|
mutation SetSegmentDuration(
|
|
|
|
$videoId: Int!
|
2024-07-16 20:22:16 -06:00
|
|
|
$segmentIndex: Int!
|
2024-07-16 16:33:22 -07:00
|
|
|
$duration: Float!
|
|
|
|
) {
|
|
|
|
setSegmentDuration(
|
|
|
|
videoId: $videoId
|
2024-07-16 20:22:16 -06:00
|
|
|
segmentIndex: $segmentIndex
|
2024-07-16 16:33:22 -07:00
|
|
|
duration: $duration
|
|
|
|
)
|
|
|
|
}
|
|
|
|
|
2024-03-24 21:01:02 -06:00
|
|
|
mutation EditUploadStream(
|
2024-02-15 18:14:54 -08:00
|
|
|
$videoId: Int!
|
2024-03-04 20:10:49 -07:00
|
|
|
$videoMetadataInput: VideoMetadataInput!
|
2024-02-15 18:14:54 -08:00
|
|
|
) {
|
2024-03-24 21:01:02 -06:00
|
|
|
editUploadStream(videoId: $videoId, videoMetadata: $videoMetadataInput)
|
2024-02-03 03:34:57 -07:00
|
|
|
}
|
2024-04-23 11:49:42 -07:00
|
|
|
|
|
|
|
query GetUploadStreams(
|
|
|
|
$limit: Int! = 5
|
|
|
|
$after: String = null
|
|
|
|
$filters: VideoFilterInput = null
|
|
|
|
) {
|
|
|
|
getUserVideos(limit: $limit, after: $after, filters: $filters) {
|
|
|
|
videos {
|
|
|
|
id
|
|
|
|
}
|
|
|
|
pageInfo {
|
|
|
|
hasNextPage
|
|
|
|
endCursor
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2024-05-06 15:16:06 -07:00
|
|
|
query GetUploadStreamsWithDetails(
|
|
|
|
$limit: Int! = 5
|
|
|
|
$after: String = null
|
|
|
|
$filters: VideoFilterInput = null
|
|
|
|
) {
|
|
|
|
getUserVideos(limit: $limit, after: $after, filters: $filters) {
|
|
|
|
videos {
|
|
|
|
id
|
|
|
|
name
|
|
|
|
startTime
|
|
|
|
stream {
|
|
|
|
isCompleted
|
|
|
|
lastIntendedSegmentBound
|
|
|
|
uploadCompletionCursor
|
|
|
|
}
|
|
|
|
}
|
|
|
|
pageInfo {
|
|
|
|
hasNextPage
|
|
|
|
endCursor
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|