83 lines
1.5 KiB
GraphQL
83 lines
1.5 KiB
GraphQL
mutation CreateUploadStream($videoMetadataInput: VideoMetadataInput!) {
|
|
createUploadStream(videoMetadata: $videoMetadataInput) {
|
|
videoId
|
|
}
|
|
}
|
|
|
|
mutation GetUploadLink($videoId: Int!, $segmentIndex: Int!) {
|
|
getUploadLink(videoId: $videoId, segmentIndex: $segmentIndex) {
|
|
uploadUrl
|
|
headers {
|
|
key
|
|
value
|
|
}
|
|
}
|
|
}
|
|
|
|
mutation GetHlsInitUploadLink($videoId: Int!) {
|
|
getHlsInitUploadLink(videoId: $videoId) {
|
|
uploadUrl
|
|
headers {
|
|
key
|
|
value
|
|
}
|
|
}
|
|
}
|
|
|
|
mutation SetSegmentDuration(
|
|
$videoId: Int!
|
|
$segmentIndex: Int!
|
|
$duration: Float!
|
|
) {
|
|
setSegmentDuration(
|
|
videoId: $videoId
|
|
segmentIndex: $segmentIndex
|
|
duration: $duration
|
|
)
|
|
}
|
|
|
|
mutation EditUploadStream(
|
|
$videoId: Int!
|
|
$videoMetadataInput: VideoMetadataInput!
|
|
) {
|
|
editUploadStream(videoId: $videoId, videoMetadata: $videoMetadataInput)
|
|
}
|
|
|
|
query GetUploadStreams(
|
|
$limit: Int! = 5
|
|
$after: String = null
|
|
$filters: VideoFilterInput = null
|
|
) {
|
|
getUserVideos(limit: $limit, after: $after, filters: $filters) {
|
|
videos {
|
|
id
|
|
}
|
|
pageInfo {
|
|
hasNextPage
|
|
endCursor
|
|
}
|
|
}
|
|
}
|
|
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
|
|
}
|
|
}
|
|
}
|