PlayerGeneratorViewModel

class PlayerGeneratorViewModel : ViewModel(source)

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val currentSubtitleYear: LiveData<Int?>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

The state of the video player, only modify it by modifyState to make sure observe is called, and avoid concurrency issues.

Functions

Link copied to clipboard
open fun addCloseable(closeable: AutoCloseable)
fun addCloseable(key: String, closeable: AutoCloseable)
Link copied to clipboard

If duplicate nothing will happen

Link copied to clipboard
fun attachGenerator(newGenerator: VideoGenerator<*>, index: Int)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun loadLinks(sourceTypes: Set<ExtractorLinkType> = LOADTYPE_INAPP)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun loadStamps(duration: Long)
Link copied to clipboard
fun loadThisEpisode(index: Int)
Link copied to clipboard

Modifies the state variable safely, and with the correct observe behavior.

Link copied to clipboard
protected open fun onCleared()
Link copied to clipboard
Link copied to clipboard
fun setSubtitleYear(year: Int?)