bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/external-video-player/mutations.tsx
2024-01-19 15:40:27 -03:00

34 lines
686 B
TypeScript

import { gql } from '@apollo/client';
export const EXTERNAL_VIDEO_START = gql`
mutation ExternalVideoStart($externalVideoUrl: String!) {
externalVideoStart(
externalVideoUrl: $externalVideoUrl
)
}
`;
export const EXTERNAL_VIDEO_UPDATE = gql`
mutation ExternalVideoUpdate(
$status: String!
$rate: Float!,
$time: Float!,
$state: Float!,
) {
externalVideoUpdate(
status: $status,
rate: $rate,
time: $time,
state: $state,
)
}
`;
export const EXTERNAL_VIDEO_STOP = gql`
mutation ExternalVideoStop {
externalVideoStop
}
`;
export default { EXTERNAL_VIDEO_START, EXTERNAL_VIDEO_UPDATE, EXTERNAL_VIDEO_STOP };