A TextureView can be used to display a content stream. Such a content stream can for instance be a video or an OpenGL scene. The content stream can come from the application's process as well as a remote process.
Questions tagged [textureview]
295 questions
3
votes
1 answer
Multiple TextureViews in a listview render incorrect video
I am making an app where I have multiple texture views in a listview. I am using a list array adapter I always use so I know that I am properly recycling each list view item and that I am setting the correct url for the video in each texture view.…

Dnaso
- 1,335
- 4
- 22
- 48
2
votes
1 answer
Use TextureView programmatically with ExoPlayer?
I create a PlayerView programmatically:
PlayerView playerView = new PlayerView(context);
Instead of using SurfaceView, I want it to use TextureView. In the documentation, it says to do the following:

user1695123
- 103
- 1
- 14
2
votes
1 answer
How do you use Textureview as a preview for cameraX [Java]
I followed the guides on cameraX which all use PreviewView for displaying the camera output using
preview.setSurfaceProvider(PreviewView.createSurfaceProvider());
How do I set the preview to use a textureview instead of a PreviewView

RandomPain73
- 31
- 3
2
votes
0 answers
Apply letterbox blur to android camera preview
I'm using the Camera2 API to show the camera stream on a TextureView. Since the dimensions of the camera do not match the device, I apply a transformation matrix. However this gives me black borders on top and bottom. I would like to fill the…

jdm
- 9,470
- 12
- 58
- 110
2
votes
0 answers
TextureView transforms on Android -Problem with Scale and crop
I have a TextureView with a fixed width and height and I want to show a camera preview inside of it. I need to crop the camera preview so that it doesn't look stretched inside my TextureView. How to do the cropping?
Here is my…

Probir Bhowmik
- 21
- 3
2
votes
0 answers
How to zoom a portion in android video view?
I have a rtsp live stream to show in a videoview. This stream consist output of 4 cameras. Like in the figure, I want to enlarge respective camera and fit in view, when user press a camera button. The stream that I have is single channel..

sreedwish k jagan
- 108
- 7
2
votes
1 answer
Android - Handling Screen Orientation with SurfaceView and Camera2 API
I have a question about how the screen orientation in Android is handled when we use the Camera2 API in combination with SurfaceView.
I was playing with the official HdrViewfinder google sample code at…

abdullah celik
- 327
- 2
- 12
2
votes
1 answer
Getting a null pointer exception while trying to draw on canvas textureview android?
I am trying to drawn on a TextureView with a canvas in Android. I am doing it inside a thread but for some reason, when I try to run my program, I am getting a null pointer exception. I have implemented my thread in the surfaceAvailable() callback…

anastacia das
- 31
- 3
2
votes
1 answer
Clearing last frame preview on TextureView
I've displayed a camera stream using TextureView. When switching camera (stopPreview() called before switching), front-to-back or vice-versa, the view paused at the last frame drawn on the TextureView. I want to display a blank screen while the…

sticky
- 383
- 1
- 4
- 19
2
votes
0 answers
How to increase FPS / keep performance for video while playing on TextureView?
Just playing video with mediaPlayer on TextureView but getting low FPS than videoView. Is there any way to overcome this?
textureView = findViewById(R.id.textureView);
textureView.setSurfaceTextureListener(new…

Rifat
- 1,700
- 3
- 20
- 51
2
votes
0 answers
Everything is ok but someKindOf Error showing on logcat while playing video
I'm playing video on Textureview. Everything seems to be ok.
It is showing this error contiuously.
04-09 12:49:17.722 155-15138/? E/VSP: VSP_RELEASE_Dev, 256, ret: 0
04-09 12:49:17.742 155-15138/? E/VSP: VSP_ACQUIRE_Dev, 198
What this means? What…

Rifat
- 1,700
- 3
- 20
- 51
2
votes
0 answers
How to update TextureView SurfaceTextureListener
I am developing a camera app and I will use front and back camera. I am using TextureView like this:

Savas Adar
- 4,083
- 3
- 46
- 54
2
votes
0 answers
Android 7.x opengl TextureView and locking screen
I have an Android app that uses the TextureView component with opengl content.
On previous versions of Android this works fine, but on Android 7.0 and above it appears that if I am displaying content but then lock the screen and unlock the opengl…

Avi Brenner
- 151
- 7
2
votes
1 answer
Record frames displayed on TextureView to mp4
I managed to write a demo displaying a 3D model on TextureView and the model can move according to the sensors of the phone. The 3D engine is wrote by C++ and what I need to do is giving the SurfaceTexture of TextureView to the 3D engine.
The…

dragonfly
- 1,151
- 14
- 35
2
votes
1 answer
How to record Tango color camera video stream
I have been able to display the video from Tango color camera on a TextureView using TangoTextureCameraPreview. Now, I would like to record the video steam into .mp4 files. It is relatively easy with MediaRecorder and Camera2, but I am not sure how…

Jeffery Hsu
- 51
- 4