本文整理了Java中android.view.TextureView.setOnClickListener()
方法的一些代码示例,展示了TextureView.setOnClickListener()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。TextureView.setOnClickListener()
方法的具体详情如下:
包路径:android.view.TextureView
类名称:TextureView
方法名:setOnClickListener
暂无
代码示例来源:origin: stackoverflow.com
setContentView(R.layout.playback);
videoView = (TextureView) findViewById(R.id.playback_video);
videoView.setOnClickListener(videoViewClickHandler);
videoView.setSurfaceTextureListener(this);
createMediaPlayer();
代码示例来源:origin: fly-studio/douyin-downloader
public PlayerListener(Context context, TextureView textureView) {
super(context);
this.textureView = textureView;
textureView.setClickable(true);
textureView.setSurfaceTextureListener(mSurfaceTextureListener);
textureView.setOnClickListener(mTextureViewOnClickListener);
player = new MediaPlayer();
player.setLooping(true);
player.setAudioStreamType(AudioManager.STREAM_MUSIC);
player.setOnPreparedListener(mMediaPlayerOnPreparedListener);
player.setOnVideoSizeChangedListener(mMediaPlayerOnVideoSizeChangedListener);
player.setOnBufferingUpdateListener(mMediaPlayerOnBufferingUpdateListener);
player.setOnCompletionListener(mMediaPlayerOnCompletionListener);
player.setScreenOnWhilePlaying(true); // 一直亮屏
}
代码示例来源:origin: stackoverflow.com
textureView.setSurfaceTextureListener(this);
textureView.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
代码示例来源:origin: Stoick001/SnapchatClone
textureView.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View view) {
内容来源于网络,如有侵权,请联系作者删除!