Class VideoTimeBar

  • All Implemented Interfaces:
    android.graphics.drawable.Drawable.Callback , android.view.KeyEvent.Callback , android.view.accessibility.AccessibilityEventSource , com.naver.ads.video.player.Updatable

    
    public final class VideoTimeBar
    extends View implements Updatable
                        

    A time bar of video ad that shows a current position, buffered position, duration

    • Method Detail

      • setPlayedColor

         final Unit setPlayedColor(Integer playedColor)

        Sets the color for the portion of the time bar representing media before the playback position.

        Parameters:
        playedColor - The color for the portion of the time bar representing media before the playback position.
      • setBufferedColor

         final Unit setBufferedColor(Integer bufferedColor)

        Sets the color for the portion of the time bar after the current played position up to the current buffered position.

        Parameters:
        bufferedColor - The color for the portion of the time bar after the current played position up to the current buffered position.
      • setUnplayedColor

         final Unit setUnplayedColor(Integer unplayedColor)

        Sets the color for the portion of the time bar after the current played position.

        Parameters:
        unplayedColor - The color for the portion of the time bar after the current played position.
      • setCornerRadius

         final Unit setCornerRadius(Integer cornerRadius)

        Sets the corner radius to be applied to the played, buffered, and unplayed bars.

        Parameters:
        cornerRadius - the corner radius to be applied to the played, buffered, and unplayed bars.