Takes are a way to define a recording session. A single take can be associated with a video file and optionally additional files.

Currently only move file is supported and the other additional file types are planned for future releases.

Creating a take

mutation CreateTake {
    take: createTake(
        videoFileId: "file-2be2463e-ffa3-419b-beb4-ea0f99c79592" // (1)
    ) {
        id
    }
}
  1. This is the original video file id. This is typically the RGB video file to be used for the take.

Response:

{
    "data": {
        "take": {
            "id": "take-2be2463e-ffa3-419b-beb4-ea0f99c79512"
        }
    }
}

Querying for a take

{
    getTake(takeId: "take-2be2463e-ffa3-419b-beb4-ea0f99c79512") {
        id
        videoFile {
            id
            presignedUrl
        }
    }
}

Response:

{
  "data": {
    "getTake": {
      "id": "take-2be2463e-ffa3-419b-beb4-ea0f99c79512",
      "videoFile": {
        "id": "file-2be2463e-ffa3-419b-beb4-ea0f99c79592",
        "presignedUrl": "https://s3.eu-central-1.amazonaws.com/move-ugc-api-dev-.../file-2be2463e-ffa3-419b-beb4-ea0f99c79592.mp4?..."
      }
    }
  }
}