This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @Override | |
| public MediaController getMediaController(Context context) { | |
| MediaController mediaController = new MediaController(context) { | |
| @Override | |
| public void setMediaPlayer(MediaPlayerControl player) { | |
| super.setMediaPlayer(player); | |
| //todo: this causes things to blow up since the Activity is not initialized yet when this is called? | |
| //show(0); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| private MediaController getMediaController() { | |
| MediaController mediaController = new MediaController(this, false) { | |
| @Override | |
| public void hide() { | |
| super.hide(); | |
| onMediaControllerHide(); | |
| } | |
| @Override |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @Override | |
| public void setMediaPlayer(final MediaPlayerControl player) { | |
| Log.d(TAG, "setMediaPlayer called with " + player); | |
| super.setMediaPlayer(new MediaPlayerControl() { | |
| @Override | |
| public void start() { | |
| player.start(); | |
| } |
NewerOlder