Questions tagged [android-textureview]
95 questions
1
vote
0 answers
ImageVIew Thumbnail setVisibility GONE not working inside onPrepared
I want to hide ImageView Thumbnail after Remote Video ready to play, means when onPrepared execute but imageView.setVisibility(View.GONE) doesn't works at all.
I have seen this answers one, two and I think cause is SurfaceView or VideoView. as per…

Kishore Jethava
- 6,666
- 5
- 35
- 51
1
vote
0 answers
Android: How to show an opengl scene to textureview
I need to render the opengl scene to a TextureView in my layout. I can render it by GlSurfaceView like below :
public void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
// Create a GLSurfaceView instance and set…

user2256870
- 955
- 1
- 8
- 9
1
vote
0 answers
How can i place dynamic image view over texture view?
This is my camera preview layout and i have a dynamic image view to show the thumbnail.I am not able to place the image view overlaping the texture view.How to do this??

Andro
- 63
- 16
1
vote
0 answers
Playing videos using textureview inside recyclerview with cardview in android
I done video playing inside recyclerview with cardview using sdcard path location. Also check sdcard not available then fetch recorded videos from internal memory. Its perfectly working in Lava iris x8 device, but in Samsung J5 and Samsung Note 2…

jack
- 338
- 1
- 3
- 29
1
vote
3 answers
How add view over TextureView
i need to add View over my TextureView which play video in it
i used VideoView before and it was totally fine but i had problem with animation so i changed it to TextureView and now i can't put any View over it!
seems that Textureview will cover…

Alireza Sharifi
- 1,127
- 1
- 9
- 18
1
vote
1 answer
TextureView setSurfaceTexture method requires API 16 level
TextureView.setSurfaceTexture method requires API level 16, but my current min 14, how can I use this method in 14, 15 API's?
UPDATE (add code)
Layout:

bene25
- 580
- 6
- 18
1
vote
2 answers
Get bitmap without transformations from TextureView
I am currently developing an application which use Camera2.
I display the preview on a TextureView which is scaled and translated (I only need to display a part of the image). My problem is that I need to analyze the entire image.
What I have in my…

NiCLO
- 11
- 1
- 3
1
vote
1 answer
onSurfaceTextureDestroyed is not called even when activity is destroyed
I have a Texture View , For which i have set setSurfaceTextureListener . I use this texture view to show live camera feed in my app. I am handling BACK KEY in app explicitly . On BACK KEY press i call " finish() " method to destroy my activity . The…

Pardeep Kr
- 479
- 2
- 6
- 25
1
vote
0 answers
Android can not create media player
I have one mp4 video and i try to play my video in TextureView.
I have one problem. In Nexus or HTC one i have no problem but in some Huawei devices i have this message
Unable To create Media player
this is a my source
private void…

donoachua
- 193
- 2
- 16
1
vote
0 answers
Android TextureView not clipping to it's view-bounds on Android KitKat 4.4
I'm using a TextureView to show a cropped video by setting a scale-matrix with setTransform(matrix) like in this tutorial. So the video gets larger than the view itself.
This works fine for all android versions except for KitKat (4.4).
The problem I…

Day
- 844
- 1
- 9
- 21
1
vote
1 answer
android check if mediaplayer finished in TextureView
i have one TextureView.i can play video from assess folder in my TextureView.
now i want to check if video is finished.i wrote setOnCompletionListener but not working.this is a my source
private void playVideoAnimation()
{
…

donoachua
- 193
- 2
- 16
1
vote
2 answers
TextureView with MediaCodec decoder for H264 streams
This is a follow-up question of this question.
This is my TextureView code:
public class VideoTextureView extends TextureView implements SurfaceTextureListener{
private static final String LOG_TAG = VideoTextureView.class.getSimpleName();
…

Kaidul
- 15,409
- 15
- 81
- 150
1
vote
1 answer
How to play video one by one in TextureView in android?
I want to play the video one by one from my sdcard using Texture view in android. I am using tetureview bcoz , I want to rotate the video at 90 degree.. so I can play the rotated video on device by implementing SurfaceTextureListener interface.
This…

Archana Sarang
- 101
- 1
- 9
1
vote
1 answer
Which View is the best choice while overlaying an image on camera preview on Android?
I want to draw a picture over on camera preview. I want to know which view(SurfaceView, TextureView, GLSurfaceView, etc.) is the best one (performance) for camera preview.
And if you can explain how to draw it, that will be great.
Thanks.

Jerikc XIONG
- 3,517
- 5
- 42
- 71
1
vote
0 answers
Want to play video efficiently using textureview to resolve fatal signal N error
I am using videoView to play video but I am getting fatal signal 6 error so I got solution that use textureview instead of videoview but I have no idea how to use it .
This is my code.
public class MainActivity extends Activity {
ListView…

Nidhi Dave
- 141
- 2
- 10