question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add feature to TextureView

See original GitHub issue

It would be great to add support for TextureView to be able to do this:

myTexture = (TextureView) findViewById(R.id.textureView);
myTexture.setSurfaceTextureListener(mSurfaceTextureListener);
// ...
QREader.getInstance().init(this, myTexture);

Why? Because for a better integration with the Camera2 API, it’s recommended to use a TextureView, because:

Unlike SurfaceView, TextureView does not create a separate window but behaves as a regular View. This key difference allows a TextureView to be moved, transformed, animated, etc.

References:

https://developer.android.com/reference/android/hardware/camera2/package-summary.html https://developer.android.com/reference/android/view/TextureView.html

Thanks for the good work!

Issue Analytics

  • State:open
  • Created 7 years ago
  • Reactions:3
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
nisrulzcommented, May 19, 2016

I will look into this in the weekend.

Thank you 😃

1reaction
Shusshucommented, Oct 18, 2016

+1

Read more comments on GitHub >

github_iconTop Results From Across the Web

TextureView - Android Developers
Flag requesting you to add views that are marked as not important for autofill (see setImportantForAutofill(int) ) to a ViewStructure .
Read more >
How add view over TextureView - Stack Overflow
The best solution I found to handle that is to show the top View inside another Window that sits on top of Window...
Read more >
Android Camera2 API Video App - Part 3 Adding TextureView ...
Part 3 describes how to add the TextureView and attach a surface texture listener to be notified of when the TextureView is available....
Read more >
Android app development for beginners - 44 - Playing Video ...
Reading an mp4 file from assets and playing in a texture view .Also pause, resume and stop functionality of the media player.
Read more >
TextureView - Android SDK | Android Developers - MIT
A TextureView can be used to display a content stream. Such a content stream can for instance be a video or an OpenGL...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found