Referência da API

Vídeos

Navegue pelos arquivos de vídeo armazenados no dispositivo.

Definições de Tipo

bash
type Video {
  id: ID!
  title: String!
  path: String!
  duration: Int!       # milliseconds
  size: Int!           # bytes
  bucketId: String!
  createdAt: String!
  updatedAt: String!
  takenAt: String      # capture time (nullable)
  tags: [Tag!]!
}

Operações

query

videos

Pesquise arquivos de vídeo. Deixe a consulta vazia para listar todos.

bash
query GetVideos($offset: Int!, $limit: Int!, $query: String!, $sortBy: FileSortBy!) {
  videos(offset: $offset, limit: $limit, query: $query, sortBy: $sortBy) {
    id title path duration size bucketId createdAt updatedAt takenAt
    tags { id name }
  }
}
query

videoCount

Conte arquivos de vídeo correspondentes a uma consulta.

bash
query GetVideoCount($query: String!) {
  videoCount(query: $query)
}