Fix/BOOK-257 video player * fix(BOOK-257): Fixes to VideoPlayerButton and added stories * fix(BOOK-257): Hiding mute button when the user has interacted with it * fix(BOOK-257): Added support for poster image * fix(BOOK-257): add crossOrigin attr to videoplayer * fix(BOOK-257): comment Approved-by: Anton Gunnarsson
48 lines
686 B
TypeScript
48 lines
686 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
|
|
}
|
|
}
|
|
}
|
|
poster_image
|
|
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}
|
|
`
|