API リファレンス
Videos
デバイスに保存されている動画ファイルを閲覧します。
型定義
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!]!
}操作
query
videos
動画ファイルを検索します。クエリを空にするとすべて一覧表示されます。
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
クエリに一致する動画ファイルの数をカウントします。
bash
query GetVideoCount($query: String!) {
videoCount(query: $query)
}