StreamDisplayContainer

interface StreamDisplayContainer : BaseDisplayContainer


A display container specific to server-side ad insertion.

Summary

Public functions

VideoStreamPlayer!

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

Unit

This function is deprecated.

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

Inherited functions

From com.google.ads.interactivemedia.v3.api.BaseDisplayContainer
Unit

This function is deprecated.

- This method is redundant once users are using release.

ViewGroup!

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

(Mutable)Collection<CompanionAdSlot!>!

Gets the companion slots that have been set.

Unit

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

Unit
registerVideoControlsOverlay(videoControlsOverlay: View!)

This function is deprecated.

- Use registerFriendlyObstruction instead.

Unit

This function is deprecated.

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

Unit

Sets slots for displaying companions.

Unit

Unregisters all previously registered friendly obstructions.

Unit

This function is deprecated.

- Use unregisterAllFriendlyObstructions instead.

Public functions

getVideoStreamPlayer

fun getVideoStreamPlayer(): VideoStreamPlayer!

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

setVideoStreamPlayer

fun setVideoStreamPlayer(videoStreamPlayer: VideoStreamPlayer!): Unit

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.