railbird-gql/src/operations/video_upload.gql

49 lines
931 B
Plaintext
Raw Normal View History

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
headers {
key
value
}
2024-02-03 03:34:57 -07:00
}
}
mutation EditUploadStream(
2024-02-15 18:14:54 -08:00
$videoId: Int!
$videoMetadataInput: VideoMetadataInput!
2024-02-15 18:14:54 -08: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
}
}
}
query GetUploadStreamDetails($videoId: Int!) {
getVideo(videoId: $videoId) {
id
stream {
isCompleted
uploadCompletionCursor
2024-04-23 11:49:42 -07:00
}
}
}