public class

PlayerControlView

extends LinearLayout
implements View.OnClickListener SeekBar.OnSeekBarChangeListener
java.lang.Object
   ↳ android.view.View
     ↳ android.view.ViewGroup
       ↳ android.widget.LinearLayout
         ↳ com.amazonaws.ivs.player.PlayerControlView

Class Overview

View for displaying the controls for a Player instance. When attached to an activity and a Player instance shows a play and pause button based on the player's state in addition also shows the player's current position, duration and a seek bar if the player can be seeked.

Summary

[Expand]
Inherited Constants
From class android.widget.LinearLayout
From class android.view.ViewGroup
From class android.view.View
[Expand]
Inherited Fields
From class android.view.View
Public Constructors
PlayerControlView(Context context)
Creates a new PlayerControlsView with the given context.
PlayerControlView(Context context, AttributeSet attrs)
Creates a new PlayerControlsView with the given context.
PlayerControlView(Context context, AttributeSet attrs, int defStyleAttr)
Creates a new PlayerControlsView with the given context.
Public Methods
TextView getDurationTextView()
ImageButton getPlayButton()
TextView getPositionTextView()
SeekBar getSeekBar()
void onClick(View v)
void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser)
void onStartTrackingTouch(SeekBar seekBar)
void onStopTrackingTouch(SeekBar seekBar)
void setPlayer(Player player)
void showControls(boolean show)
[Expand]
Inherited Methods
From class android.widget.LinearLayout
From class android.view.ViewGroup
From class android.view.View
From class java.lang.Object
From interface android.graphics.drawable.Drawable.Callback
From interface android.view.KeyEvent.Callback
From interface android.view.View.OnClickListener
From interface android.view.ViewManager
From interface android.view.ViewParent
From interface android.view.accessibility.AccessibilityEventSource
From interface android.widget.SeekBar.OnSeekBarChangeListener

Public Constructors

public PlayerControlView (Context context)

Creates a new PlayerControlsView with the given context.

Parameters
context activity context to use

public PlayerControlView (Context context, AttributeSet attrs)

Creates a new PlayerControlsView with the given context.

Parameters
context activity context to use
attrs attributes

public PlayerControlView (Context context, AttributeSet attrs, int defStyleAttr)

Creates a new PlayerControlsView with the given context.

Parameters
context activity context to use
attrs attributes
defStyleAttr style attributes

Public Methods

public TextView getDurationTextView ()

Returns
  • SeekBar used for displaying seek access for the player.

public ImageButton getPlayButton ()

Returns
  • ImageButton for play/pause used on the controls.

public TextView getPositionTextView ()

Returns
  • TextView used for displaying the position label on the controls

public SeekBar getSeekBar ()

Returns
  • SeekBar used on the controls.

public void onClick (View v)

public void onProgressChanged (SeekBar seekBar, int progress, boolean fromUser)

public void onStartTrackingTouch (SeekBar seekBar)

public void onStopTrackingTouch (SeekBar seekBar)

public void setPlayer (Player player)

public void showControls (boolean show)