Query Videos
Querying videos happens through the video store component that you can retrieve with VideoKit.videos()
.
All functions of this component are asynchronous and will return the usual Call
object,
described here.
Note that just like all other network APIs, you will need a valid session or the call will return an error.
#
Fetch single videoSingle videos can be fetched by id with the get()
method:
#
Query listsThe video store can return immutable lists of videos (List<Video>
). As with other APIs, we
use request objects to define the query parameters, all extending the ListRequest
interface.
We expose several types of requests, and in all cases you can set a SortOrder
and limit
and offset
parameters.
Once you have the request, just call getList
:
#
Filter by userYou can filter by user using UserListRequest
:
#
Filter by idYou can filter by id using CustomListRequest
:
#
Filter by metadata and tagsYou can filter by metadata and tags using FilteredListRequest
: