Files
web/packages/trpc/lib/graphql/Fragments/Video.graphql.ts
Erik Tiekstra bf7a2ac2fe Fix/BOOK-240 video fixes
* 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
2025-12-16 09:09:17 +00:00

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}
`