Aller au contenu principal
Mutation

sendCameraCommand

Queues a remote-control command for a camera. FilmKit never contacts the camera itself: a FilmKit app on set holding a connected link to the camera claims and runs the command. Returns the command, still PENDING unless waitMs allowed time for the outcome. Requires edit access to the project.

Arguments

  • cameraIdID!

    ID of the Camera to control.

  • The command to send.

  • linkIdID

    ID of the CameraLink to use. Omit to let any connected link of the camera run it.

  • projectIdID!

    ID of the project.

  • ttlMsInt

    How long the command may wait to be claimed, in milliseconds. Defaults to 30000; clamped to between 1000 and 600000.

  • waitMsInt

    How long to wait for the outcome before answering, in milliseconds (at most 20000). Omit or 0 to return at once.

Renvoie

CameraCommand!

Exemple

mutation SendCameraCommand($cameraId: ID!, $command: CameraCommandInput!, $linkId: ID, $projectId: ID!, $ttlMs: Int, $waitMs: Int) {
  sendCameraCommand(
    cameraId: $cameraId
    command: $command
    linkId: $linkId
    projectId: $projectId
    ttlMs: $ttlMs
    waitMs: $waitMs
  ) {
    cameraId
    claimedAt
    claimedBy
    completedAt
    error
    expiresAt
    id
    kind
  }
}