本文整理了Java中android.widget.MediaController.hide()
方法的一些代码示例,展示了MediaController.hide()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。MediaController.hide()
方法的具体详情如下:
包路径:android.widget.MediaController
类名称:MediaController
方法名:hide
暂无
代码示例来源:origin: florent37/CameraFragment
@Override
protected void onDestroy() {
super.onDestroy();
if (mediaPlayer != null) {
mediaPlayer.release();
mediaPlayer = null;
}
if (mediaController != null) {
mediaController.hide();
mediaController = null;
}
}
代码示例来源:origin: jjdxmashl/jjdxm_ijkplayer
@Override
public void hide() {
super.hide();
if (mActionBar != null)
mActionBar.hide();
for (View view : mShowOnceArray)
view.setVisibility(View.GONE);
mShowOnceArray.clear();
}
代码示例来源:origin: Rukey7/MvpApp
@Override
public void hide() {
super.hide();
if (mActionBar != null)
mActionBar.hide();
for (View view : mShowOnceArray)
view.setVisibility(View.GONE);
mShowOnceArray.clear();
}
代码示例来源:origin: florent37/CameraFragment
@Override
public boolean onTouch(View v, MotionEvent event) {
if (mediaController == null) return false;
if (mediaController.isShowing()) {
mediaController.hide();
showButtonPanel(true);
} else {
showButtonPanel(false);
mediaController.show();
}
return false;
}
});
代码示例来源:origin: stackoverflow.com
protected void onStop() {
super.onStop();
mediaController.hide();
mediaPlayer.stop();
mediaPlayer.release();
代码示例来源:origin: pili-engineering/PLDroidShortVideo
@Override
public boolean onTouchEvent(MotionEvent event) {
if (!mMediaController.isShowing()) {
mMediaController.show(0);
} else {
mMediaController.hide();
}
return super.onTouchEvent(event);
}
代码示例来源:origin: ExcaliburZ/ImitateBilibili
public void surfaceDestroyed(SurfaceHolder holder) {
mSurfaceHolder = null;
if (mMediaController != null)
mMediaController.hide();
if (mCurrentState != STATE_SUSPEND)
release(true);
}
};
代码示例来源:origin: weexteam/weex-hackernews
@Override
public void onPrepared(MediaPlayer mediaPlayer) {
if (WXEnvironment.isApkDebugable()) {
WXLogUtils.d("Video", "onPrepared");
}
video.getProgressBar().setVisibility(View.GONE);
mPrepared = true;
if (mAutoPlay) {
video.start();
}
//callback from video view, so videoview should not null
WXVideoView videoView = video.getVideoView();
videoView.seekTo(5);
if (video.getMediaController() != null) {
if (!mStopped) {
video.getMediaController().show(3);
} else {
video.getMediaController().hide();
}
}
mStopped = false;
}
});
代码示例来源:origin: stackoverflow.com
MediaController controller=MediaController(Context);
controller.hide();
VideoView videoView= (VideoView) findViewById(R.id.videoView1);
videoView.setMediaController(controller);
//try passing null here as well
代码示例来源:origin: sprylab/texturevideoview
public void setMediaController(MediaController controller) {
if (mMediaController != null) {
mMediaController.hide();
}
mMediaController = controller;
attachMediaController();
}
代码示例来源:origin: Dawish/BriskTVLauncher
@Override
public void hide() {
super.hide();
if (mActionBar != null)
mActionBar.hide();
for (View view : mShowOnceArray)
view.setVisibility(View.GONE);
mShowOnceArray.clear();
}
代码示例来源:origin: upyun/android-player-sdk
public void setMediaController(MediaController controller) {
if (mMediaController != null) {
mMediaController.hide();
}
mMediaController = controller;
attachMediaController();
}
代码示例来源:origin: Rukey7/IjkPlayerView
@Override
public void hide() {
super.hide();
if (mActionBar != null)
mActionBar.hide();
for (View view : mShowOnceArray)
view.setVisibility(View.GONE);
mShowOnceArray.clear();
}
代码示例来源:origin: yugai/DouYu-Android
@Override
public void hide() {
super.hide();
if (mActionBar != null)
mActionBar.hide();
for (View view : mShowOnceArray)
view.setVisibility(View.GONE);
mShowOnceArray.clear();
}
代码示例来源:origin: ExcaliburZ/ImitateBilibili
public void setMediaController(MediaController controller) {
if (mMediaController != null)
mMediaController.hide();
mMediaController = controller;
attachMediaController();
}
代码示例来源:origin: upyun/android-player-sdk
public void onCompletion(IMediaPlayer mp) {
mCurrentState = STATE_PLAYBACK_COMPLETED;
mTargetState = STATE_PLAYBACK_COMPLETED;
if (mMediaController != null) {
mMediaController.hide();
}
if (mOnCompletionListener != null) {
mOnCompletionListener.onCompletion(mMediaPlayer);
}
}
};
代码示例来源:origin: fire3/sailorcast
private void toggleControlsVisibility() {
if (mediaController.isShowing()) {
mediaController.hide();
debugRootView.setVisibility(View.GONE);
} else {
showControls();
}
}
代码示例来源:origin: sprylab/texturevideoview
@Override
public boolean onSurfaceTextureDestroyed(final SurfaceTexture surface) {
// after we return from this we can't use the surface any more
if (mSurface != null) {
mSurface.release();
mSurface = null;
}
if (mMediaController != null) mMediaController.hide();
release(true);
return true;
}
@Override
代码示例来源:origin: ExcaliburZ/ImitateBilibili
public void onCompletion(IMediaPlayer mp) {
DebugLog.d(TAG, "onCompletion");
mCurrentState = STATE_PLAYBACK_COMPLETED;
mTargetState = STATE_PLAYBACK_COMPLETED;
if (mMediaController != null)
mMediaController.hide();
if (mOnCompletionListener != null)
mOnCompletionListener.onCompletion(mMediaPlayer);
}
};
代码示例来源:origin: sprylab/texturevideoview
private void toggleMediaControlsVisiblity() {
if (mMediaController.isShowing()) {
mMediaController.hide();
} else {
mMediaController.show();
}
}
内容来源于网络,如有侵权,请联系作者删除!