StreamDisplayContainer

public interface StreamDisplayContainer extends BaseDisplayContainer


A display container specific to server-side ad insertion.

Summary

Public methods

abstract VideoStreamPlayer

Returns the previously set player used for server-side ad insertion, or null if none has been set.

abstract void

This method is deprecated.

Construct the AdDisplayContainer by passing the VideoStreamPlayer in the constructor, instead of using setPlayer.

Inherited methods

From com.google.ads.interactivemedia.v3.api.BaseDisplayContainer
abstract void

This method is deprecated.

- This method is redundant once users are using release.

abstract ViewGroup

Returns the previously set container, or null if none has been set.

abstract Collection<CompanionAdSlot>

Gets the companion slots that have been set.

abstract void

Registers a view that overlays or obstructs this container as "friendly" for viewability measurement purposes.

abstract void
registerVideoControlsOverlay(View videoControlsOverlay)

This method is deprecated.

- Use registerFriendlyObstruction instead.

abstract void

This method is deprecated.

Use the constructor which determines the Ad Container at construction time.

abstract void

Sets slots for displaying companions.

abstract void

Unregisters all previously registered friendly obstructions.

abstract void

This method is deprecated.

- Use unregisterAllFriendlyObstructions instead.

Public methods

getVideoStreamPlayer

abstract VideoStreamPlayer getVideoStreamPlayer()

Returns the previously set player used for server-side ad insertion, or null if none has been set.

setVideoStreamPlayer

abstract void setVideoStreamPlayer(VideoStreamPlayer videoStreamPlayer)

Provides a video player to the SDK that is used to display content with server-side inserted ads. Required for server-side ad insertion playback.