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 class
ImaServerSideAdInsertionMediaSource.AdsLoader.Builder
Builder for building anImaServerSideAdInsertionMediaSource.AdsLoader
.static class
ImaServerSideAdInsertionMediaSource.AdsLoader.State
The state of theImaServerSideAdInsertionMediaSource.AdsLoader
that can be used when resuming from the background.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
focusSkipButton()
Puts the focus on the skip button, if a skip button is present and an ad is playing.ImaServerSideAdInsertionMediaSource.AdsLoader.State
release()
Releases resources.void
setPlayer(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.State
that can be used when resuming from the background.
-
-