Manilo

class Manilo(    master: Master,     playableCreator: PlayableCreator<PlayerView> = PlayerViewPlayableCreator.Builder(master.app) .setBridgeCreatorFactory(defaultBridgeCreatorFactory) .build(),     rendererProviderFactory: RendererProviderFactory = ::PlayerViewProvider) : Kohii, AdEvent.AdEventListener

An Engine that employs the ExoPlayer API and supports Ads using the Google IMA SDK (via the ExoPlayer Ima extension).

Constructors

Link copied to clipboard
fun Manilo(    context: Context,     playerPool: PlayerPool<Player> = ExoPlayerPool( context = context.applicationContext, userAgent = Common.getUserAgent(context.applicationContext, BuildConfig.LIB_NAME) ),     imaAdsLoaderBuilder: ImaAdsLoader.Builder?,     rendererProviderFactory: RendererProviderFactory = ::PlayerViewProvider)

Creates a new instance of Manilo from a Context and a custom ImaAdsLoader.Builder. Application can also use a custom PlayerPool for the Player, but they are all optional.

Link copied to clipboard
fun Manilo(    context: Context,     config: ExoPlayerConfig,     imaAdsLoaderBuilder: ImaAdsLoader.Builder?,     rendererProviderFactory: RendererProviderFactory = ::PlayerViewProvider)

Creates a new instance of Manilo from a Context, an ExoPlayerConfig and a custom ImaAdsLoader.Builder.

Link copied to clipboard
fun Manilo(    context: Context,     playerCreator: (Context) -> Player? = null,     imaAdsLoaderBuilder: ImaAdsLoader.Builder?,     rendererProviderFactory: RendererProviderFactory = ::PlayerViewProvider)

Creates a new instance of Manilo from a Context, a custom way to create Player instance, a custom way to create MediaSourceFactory for the Media item, a custom MediaSourceFactory for the ad media and a custom ImaAdsLoader.Builder.

Link copied to clipboard
fun Manilo(    master: Master,     playableCreator: PlayableCreator<PlayerView> = PlayerViewPlayableCreator.Builder(master.app) .setBridgeCreatorFactory(defaultBridgeCreatorFactory) .build(),     rendererProviderFactory: RendererProviderFactory = ::PlayerViewProvider)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun applyVolumeInfo(    volumeInfo: VolumeInfo,     target: Any,     scope: Scope)
Link copied to clipboard
fun cancel(container: ViewGroup)
fun cancel(tag: Any)
Link copied to clipboard
open fun cleanUp()
Link copied to clipboard
fun lockActivity(activity: FragmentActivity)
Link copied to clipboard
fun lockBucket(view: View)
Link copied to clipboard
fun lockManager(manager: Manager)
Link copied to clipboard
fun lockPlayback(playback: Playback)
Link copied to clipboard
open override fun onAdEvent(adEvent: AdEvent)
Link copied to clipboard
open override fun prepare(manager: Manager)
Link copied to clipboard
fun register(    fragment: Fragment,     memoryMode: MemoryMode,     activeLifecycleState: Lifecycle.State): Manager
fun register(    activity: FragmentActivity,     memoryMode: MemoryMode,     activeLifecycleState: Lifecycle.State): Manager
Link copied to clipboard
inline fun setUp(uri: Uri, crossinline options: Binder.Options.() -> Unit): Binder
inline fun setUp(media: Media, crossinline options: Binder.Options.() -> Unit): Binder
inline fun setUp(url: String, crossinline options: Binder.Options.() -> Unit): Binder
Link copied to clipboard
fun stick(lifecycleOwner: LifecycleOwner)
fun stick(playback: Playback)
Link copied to clipboard
fun unlockActivity(activity: FragmentActivity)
Link copied to clipboard
fun unlockBucket(view: View)
Link copied to clipboard
fun unlockManager(manager: Manager)
Link copied to clipboard
fun unlockPlayback(playback: Playback)
Link copied to clipboard
fun unstick(lifecycleOwner: LifecycleOwner)
fun unstick(playback: Playback)

Properties

Link copied to clipboard
val master: Master
Link copied to clipboard
val playableCreator: PlayableCreator<PlayerView>