ResizablePlayer

public interface ResizablePlayer


Provides an API for interactive advertisements to resize the VideoAdPlayer or VideoStreamPlayer within its container. For example, a creative may want to render a banner below the video. Implementing this interface is not mandatory, but will enable richer interactive creatives to be played in your app.

To make your player resizeable, the same class that implements VideoAdPlayer or VideoStreamPlayer must also implement ResizablePlayer.

Summary

Public methods

abstract void
resize(int leftMargin, int topMargin, int rightMargin, int bottomMargin)

Resizes the VideoPlayer within its bounds by adding margins to each side, in pixels.

default void
resize(
    int leftMargin,
    int topMargin,
    int rightMargin,
    int bottomMargin,
    int transitionDurationMs
)

Resizes the VideoPlayer within its bounds by adding margins to each side, in pixels.

Public methods

resize

abstract void resize(int leftMargin, int topMargin, int rightMargin, int bottomMargin)

Resizes the VideoPlayer within its bounds by adding margins to each side, in pixels.

resize

default void resize(
    int leftMargin,
    int topMargin,
    int rightMargin,
    int bottomMargin,
    int transitionDurationMs
)

Resizes the VideoPlayer within its bounds by adding margins to each side, in pixels.

Parameters
int leftMargin

left margin in pixels.

int topMargin

top margin in pixels.

int rightMargin

right margin in pixels.

int bottomMargin

bottom margin in pixels.

int transitionDurationMs

resize animation duration in milliseconds.