Create playlist, video generator and video player (#489)
Co-authored-by: Ivan Malison <IvanMalison@gmail.com> Reviewed-on: railbird/railbird-mobile#489 Reviewed-by: Ivan Malison <ivanmalison@gmail.com>
This commit is contained in:
@@ -1,5 +1,9 @@
|
||||
query GetShots(
|
||||
$filterInput: FilterInput!
|
||||
$includeCreatedAt: Boolean! = false
|
||||
$includeUpdatedAt: Boolean! = false
|
||||
$includeCueObjectFeatures: Boolean! = false
|
||||
$includePocketingIntentionFeatures: Boolean! = false
|
||||
$includeCueObjectDistance: Boolean! = false
|
||||
$includeCueObjectAngle: Boolean! = false
|
||||
$includeCueBallSpeed: Boolean! = false
|
||||
@@ -13,15 +17,16 @@ query GetShots(
|
||||
videoId
|
||||
startFrame
|
||||
endFrame
|
||||
createdAt
|
||||
updatedAt
|
||||
cueObjectFeatures {
|
||||
createdAt @include(if: $includeCreatedAt)
|
||||
updatedAt @include(if: $includeUpdatedAt)
|
||||
cueObjectFeatures @include(if: $includeCueObjectFeatures) {
|
||||
cueObjectDistance @include(if: $includeCueObjectDistance)
|
||||
cueObjectAngle @include(if: $includeCueObjectAngle)
|
||||
cueBallSpeed @include(if: $includeCueBallSpeed)
|
||||
shotDirection @include(if: $includeShotDirection)
|
||||
}
|
||||
pocketingIntentionFeatures {
|
||||
pocketingIntentionFeatures
|
||||
@include(if: $includePocketingIntentionFeatures) {
|
||||
targetPocketDistance @include(if: $includeTargetPocketDistance)
|
||||
make @include(if: $includeMake)
|
||||
intendedPocketType @include(if: $includeIntendedPocketType)
|
||||
|
@@ -117,11 +117,34 @@ query GetVideoDetails($videoId: Int!) {
|
||||
query GetVideos($videoIds: [Int!]!) {
|
||||
getVideos(videoIds: $videoIds) {
|
||||
id
|
||||
name
|
||||
framesPerSecond
|
||||
playlist {
|
||||
m3u8Text
|
||||
segmentDurations
|
||||
}
|
||||
stream {
|
||||
id
|
||||
segments {
|
||||
uploaded
|
||||
valid
|
||||
segmentIndex
|
||||
endFrameIndex
|
||||
framesPerSecond
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
query GetVideo($videoId: Int!) {
|
||||
getVideo(videoId: $videoId) {
|
||||
id
|
||||
playlist {
|
||||
segmentDurations
|
||||
}
|
||||
stream {
|
||||
segments {
|
||||
segmentIndex
|
||||
endFrameIndex
|
||||
framesPerSecond
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user