API Reference

Videos

Browse video files stored on the device.

Type Definitions

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!]!
}

Operations

query

videos

Search video files. Leave query empty to list all.

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

Count video files matching a query.

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