Stay organized with collections
Save and categorize content based on your preferences.
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.
Public Method Summary
abstract
void
resize(int leftMargin, int topMargin, int rightMargin, int bottomMargin)
Resize the VideoPlayer within its bounds by adding margins to each side, in pixels.
Public Methods
public
abstract
void
resize(int leftMargin, int topMargin, int rightMargin, int bottomMargin)
Resize the VideoPlayer within its bounds by adding margins to each side, in pixels.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2023-11-14 UTC."],[[["`ResizablePlayer` allows interactive ads to resize the video player within its container, enabling richer creative experiences."],["Implementing `ResizablePlayer` is optional but recommended for supporting advanced interactive ads."],["The `resize` method adjusts the video player's dimensions by specifying margins in pixels for each side."],["To use this functionality, the same class should implement both the video player interface (`VideoAdPlayer` or `VideoStreamPlayer`) and `ResizablePlayer`."]]],[]]