Class ImaServerSideAdInsertionMediaSource.AdsLoader
- java.lang.Object
-
- com.google.android.exoplayer2.ext.ima.ImaServerSideAdInsertionMediaSource.AdsLoader
-
- Enclosing class:
- ImaServerSideAdInsertionMediaSource
public static final class ImaServerSideAdInsertionMediaSource.AdsLoader extends Object
An ads loader for IMA server side ad insertion streams.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImaServerSideAdInsertionMediaSource.AdsLoader.BuilderBuilder for building anImaServerSideAdInsertionMediaSource.AdsLoader.static classImaServerSideAdInsertionMediaSource.AdsLoader.StateThe state of theImaServerSideAdInsertionMediaSource.AdsLoaderthat can be used when resuming from the background.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidfocusSkipButton()Puts the focus on the skip button, if a skip button is present and an ad is playing.ImaServerSideAdInsertionMediaSource.AdsLoader.Staterelease()Releases resources.voidsetPlayer(Player player)Sets the player.
-
-
-
Method Detail
-
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.
-
focusSkipButton
public void focusSkipButton()
Puts the focus on the skip button, if a skip button is present and an ad is playing.- See Also:
BaseManager.focus()
-
release
public ImaServerSideAdInsertionMediaSource.AdsLoader.State release()
Releases resources.- Returns:
- The
ImaServerSideAdInsertionMediaSource.AdsLoader.Statethat can be used when resuming from the background.
-
-