public interface IMediaController
| Modifier and Type | Interface and Description |
|---|---|
static interface |
IMediaController.MediaPlayerControl
Interface definition for player control
|
| Modifier and Type | Method and Description |
|---|---|
void |
hide()
Hide the widget.
|
boolean |
isShowing()
Is the widget showing.
|
void |
setAnchorView(android.view.View view)
Sets the view that acts as the anchor for the control view.
|
void |
setEnabled(boolean enable)
Sets the controller enabled or not.
|
void |
setMediaPlayer(IMediaController.MediaPlayerControl player)
Sets media player.
|
void |
show()
Show the widget.
|
void |
show(int timeout)
Show the widget with timeout.
|
void setMediaPlayer(IMediaController.MediaPlayerControl player)
player - the playervoid show()
void show(int timeout)
timeout - the time outvoid hide()
boolean isShowing()
void setEnabled(boolean enable)
enable - the enablevoid setAnchorView(android.view.View view)
this can be a VideoView, or your Activity's main view.
view - The view to which to anchor the controller when it is visible.