2024-01-19 21:44:27 +08:00
|
|
|
import { gql } from '@apollo/client';
|
|
|
|
|
|
|
|
export const EXTERNAL_VIDEO_START = gql`
|
|
|
|
mutation ExternalVideoStart($externalVideoUrl: String!) {
|
|
|
|
externalVideoStart(
|
|
|
|
externalVideoUrl: $externalVideoUrl
|
|
|
|
)
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
2024-01-19 22:46:11 +08:00
|
|
|
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,
|
|
|
|
)
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
2024-01-20 02:40:27 +08:00
|
|
|
export const EXTERNAL_VIDEO_STOP = gql`
|
|
|
|
mutation ExternalVideoStop {
|
|
|
|
externalVideoStop
|
|
|
|
}
|
|
|
|
`;
|
|
|
|
|
|
|
|
export default { EXTERNAL_VIDEO_START, EXTERNAL_VIDEO_UPDATE, EXTERNAL_VIDEO_STOP };
|