android.view.TextureView.setOnClickListener()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(1.6k)|赞(0)|评价(0)|浏览(190)

本文整理了Java中android.view.TextureView.setOnClickListener()方法的一些代码示例,展示了TextureView.setOnClickListener()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。TextureView.setOnClickListener()方法的具体详情如下:
包路径:android.view.TextureView
类名称:TextureView
方法名:setOnClickListener

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) {

相关文章