Videos

interface Videos

The video catalogue.

Reached through Content.videos. get resolves one video in full — dimensions, duration, cover — while the all overloads list them in their light VideoShort form. Videos are distributed under a publication, so all(publicationIds, …) is the usual way to list them.

Everything here follows the active profile and is bound to the scope you pass — see Content.

Functions

Link copied to clipboard
abstract fun all(pageSize: Int = 20, scope: CoroutineScope): PaginatedResource<VideoShort>

Retrieves a paginated list of video content accessible to the current user profile.

abstract fun all(publicationIds: List<PublicationId>, pageSize: Int = 20, scope: CoroutineScope): PaginatedResource<VideoShort>

Retrieves a paginated list of video content accessible to the current user profile filtered by publicationIds.

Link copied to clipboard
abstract suspend fun get(id: VideoId, scope: CoroutineScope): StateFlow<CgsStreamState<Video?>>

Observes a video by its identifier, reacting to changes in the active session.