public class BMediaController
extends RelativeLayout
Modifier and Type | Class and Description |
---|---|
static interface |
BMediaController.VideoViewControl |
Constructor and Description |
---|
BMediaController(Context context) |
BMediaController(Context context,
AttributeSet attrs) |
BMediaController(Context context,
AttributeSet attrs,
int defStyle) |
BMediaController(Context context,
AttributeSet attrs,
int defStyle,
java.lang.String pkgName) |
BMediaController(Context context,
AttributeSet attrs,
java.lang.String pkgName) |
BMediaController(Context context,
java.lang.String pkgName) |
Modifier and Type | Method and Description |
---|---|
void |
enableControllerBar(boolean isEnable) |
boolean |
getIsDragging() |
int |
getVisibility() |
boolean |
hasVideoView() |
void |
hide()
Remove the controller from the screen.
|
void |
onClick(View v) |
void |
setCache(int cache) |
void |
setMax(int maxProgress)
Set the max process for the seekBar, usually the lasting seconds
|
void |
setMediaPlayerControl(BMediaController.VideoViewControl player) |
void |
setPreNextListener(OnClickListener preListener,
OnClickListener backListener)
The "previous" and "next" buttons are hidden until setPrevNextListeners() has been called.
|
void |
setProgress(int progress) |
void |
setResolutionListener(OnClickListener resListener)
The "show available resolution" buttons are hidden until setResolutionListener() has been called.
|
void |
setSnapshotListener(OnClickListener snapListener)
The "take snapshot" buttons are hidden until setSnapshotListener() has been called.
|
void |
setSubtitleListener(OnClickListener subtitleListener)
The "switch subtitle" buttons are hidden until setSubtitleListener() has been called.
|
void |
show()
Show the controller on screen.
|
void |
UpdateUI(CyberPlayerController.PLAYER_STATUS status) |
public BMediaController(Context context)
context
- public BMediaController(Context context, AttributeSet attrs)
context
- attrs
- public BMediaController(Context context, AttributeSet attrs, int defStyle)
context
- attrs
- defStyle
- public BMediaController(Context context, java.lang.String pkgName)
context
- pkgName
- public BMediaController(Context context, AttributeSet attrs, java.lang.String pkgName)
context
- attrs
- pkgName
- public BMediaController(Context context, AttributeSet attrs, int defStyle, java.lang.String pkgName)
context
- attrs
- defStyle
- pkgName
- public void UpdateUI(CyberPlayerController.PLAYER_STATUS status)
status
- public void setMediaPlayerControl(BMediaController.VideoViewControl player)
player
- public void show()
public void hide()
public int getVisibility()
public boolean getIsDragging()
public void setMax(int maxProgress)
public void setProgress(int progress)
progress
- public void setCache(int cache)
progress
- public void enableControllerBar(boolean isEnable)
isEnable
- public void onClick(View v)
public void setPreNextListener(OnClickListener preListener, OnClickListener backListener)
preListener
- nextListener
- public void setSnapshotListener(OnClickListener snapListener)
snapListener
- public void setResolutionListener(OnClickListener resListener)
resListener
- public void setSubtitleListener(OnClickListener subtitleListener)
subtitleListener
- public boolean hasVideoView()