Package kohii.v1.core
Types
Manager is a component designed to manage a Fragment or an Activity which contains big Views like RecyclerView or ViewPager. Manager creates and manages Buckets for Views on demand. You only need to create Bucket for the View whose manages Videos. For example, your app has 2 RecyclerViews A and B, but only B contains Videos. You can ask the Manager to create and manage a Bucket for the RecyclerView B only. That way, the library doesn't need to observe and handle the changes of the RecyclerView A.
Refer to values of com.google.android.exoplayer2.C.NetworkType
A Playable contains necessary information about a Media item, and the config provided by client for it to start the media with expected result. Instance of Playable is provided by PlayableCreator.
An observer to allow client to know when the Playable (defined by its tag)'s Playback is changed. Client can use the Manager.observe method to register an observer.
Common interface of an object that defines the connection between a Playable and a ViewGroup as an container. When the Master receive a request to bind a Video to a ViewGroup, it first produce a Playable (either by acquiring from cache, or creating a new one) for the Video, and then creating a new instance of this object if needed.
Definition of a pool to provide PLAYER instance for the consumer.
A pool to cache the renderer for the Playback.
Functions
Quickly setup the Controller that only needs to setup the renderer.