public final class

ImaServerSideAdInsertionMediaSource.AdsLoader

extends java.lang.Object

 java.lang.Object

↳androidx.media3.exoplayer.ima.ImaServerSideAdInsertionMediaSource.AdsLoader

Overview

An ads loader for IMA server side ad insertion streams.

Summary

Methods
public ImaServerSideAdInsertionMediaSource.AdsLoader.Staterelease()

Releases resources.

public voidsetPlayer(Player player)

Sets the player.

from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Methods

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.

Releases resources.

Returns:

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