ImaServerSideAdInsertionMediaSource.AdsLoader


public final class ImaServerSideAdInsertionMediaSource.AdsLoader


An ads loader for IMA server side ad insertion streams.

Summary

Nested types

Builder for building an AdsLoader.

The state of the AdsLoader that can be used when resuming from the background.

Public methods

void

Puts the focus on the skip button, if a skip button is present and an ad is playing.

ImaServerSideAdInsertionMediaSource.AdsLoader.State

Releases resources.

void
setPlayer(Player player)

Sets the player.

Public methods

focusSkipButton

public void focusSkipButton()

Puts the focus on the skip button, if a skip button is present and an ad is playing.

See also
focus

release

public ImaServerSideAdInsertionMediaSource.AdsLoader.State release()

Releases resources.

Returns
ImaServerSideAdInsertionMediaSource.AdsLoader.State

The State that can be used when resuming from the background.

setPlayer

public void setPlayer(Player player)

Sets the player.

This method needs to be called before adding server side ad insertion media items to the player.