Interface CustomPlayer

  • All Implemented Interfaces:

    @MainThread() 
    public interface CustomPlayer
    
                        

    In-stream player interface for customization.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Constructor Detail

    • 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 - true to show the progress bar; false to 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.