* fix(BOOK-240): Added support for multiple sources and fixed issue with play/pause on mobile * fix(BOOK-240): Pausing hero video when scrolling out of view Approved-by: Christel Westerberg
47 lines
669 B
TypeScript
47 lines
669 B
TypeScript
import { gql } from "graphql-tag"
|
|
|
|
import { AssetSystem } from "./System.graphql"
|
|
|
|
export const Video = gql`
|
|
fragment Video on Video {
|
|
sourceConnection {
|
|
edges {
|
|
node {
|
|
url
|
|
content_type
|
|
}
|
|
}
|
|
}
|
|
focal_point {
|
|
x
|
|
y
|
|
}
|
|
captions {
|
|
is_default
|
|
language
|
|
fileConnection {
|
|
edges {
|
|
node {
|
|
url
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
`
|
|
|
|
export const VideoRef = gql`
|
|
fragment VideoRef on Video {
|
|
sourceConnection {
|
|
edges {
|
|
node {
|
|
system {
|
|
...AssetSystem
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
${AssetSystem}
|
|
`
|