Package ru.buzzoola.ads.instream
Interface CustomPlayer
-
- All Implemented Interfaces:
@MainThread() public interface CustomPlayer
In-stream player interface for customization.
-
-
Method Summary
Modifier and Type Method Description abstract UnitsetBackground(@ColorInt() Integer color)Sets the background color of the player. abstract UnitshowProgressBar(Boolean show)Shows or hides the progress bar (timeline). abstract UnitsetProgressBarColor(@ColorInt() Integer color)Sets the custom color for the progress bar (timeline). abstract UnitsetLoaderRes(@DrawableRes() Integer background, @DrawableRes() Integer drawable)Sets custom resources for the loading indicator. -
-
Method Detail
-
setBackground
abstract Unit setBackground(@ColorInt() Integer color)
Sets the background color of the player.
The default background color is black.
- Parameters:
color- The background color.
-
showProgressBar
abstract Unit showProgressBar(Boolean show)
Shows or hides the progress bar (timeline).
By default, the progress bar is hidden.
- Parameters:
show-trueto show the progress bar;falseto hide it.
-
setProgressBarColor
abstract Unit setProgressBarColor(@ColorInt() Integer color)
Sets the custom color for the progress bar (timeline).
The default color is #3AEEB8.
- Parameters:
color- The progress bar color.
-
setLoaderRes
abstract Unit setLoaderRes(@DrawableRes() Integer background, @DrawableRes() Integer drawable)
Sets custom resources for the loading indicator.
- Parameters:
background- The background resource of the loader.drawable- The drawable resource of the loader.
-
-
-
-