VideoState
data class VideoState(val subtitles: PersistentSet<SubtitleData> = persistentSetOf(), val links: PersistentSet<VideoLink> = persistentSetOf(), val erroredLinks: PersistentSet<VideoLink> = persistentSetOf(), val stamps: PersistentList<VideoSkipStamp> = persistentListOf(), val loading: Resource<Unit> = Resource.Loading(), val generatorState: GeneratorState? = null, val instance: Int)(source)
Immutable state of all current links relevant to displaying the video
Constructors
Link copied to clipboard
constructor(subtitles: PersistentSet<SubtitleData> = persistentSetOf(), links: PersistentSet<VideoLink> = persistentSetOf(), erroredLinks: PersistentSet<VideoLink> = persistentSetOf(), stamps: PersistentList<VideoSkipStamp> = persistentListOf(), loading: Resource<Unit> = Resource.Loading(), generatorState: GeneratorState? = null, instance: Int)
Properties
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
The cache is guaranteed to be up to date link-wise due to the immutable links. However, hideNegativeSources and hideErrorSources could be updated, which requires clearing the cache.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Returns .links in the sorted order according to the qualityProfile. Use .links if order is not needed