Questions tagged [textureview]

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.

295 questions
0
votes
0 answers

Can I change interpolation method of a scaled Android View or are there any workarounds?

On iOS I can achieve this by just setting a property. But on Android it seems I'm out of luck. I need render an image of a fixed size with OpenGL, and apply it to the screen with nearest neighbor interpolation. Currently I can only do this by render…
BlueWanderer
  • 2,671
  • 2
  • 21
  • 36
0
votes
0 answers

playing movie playlist on a textureview causes device to restart

Iam playing a video playlist using android textureview, every time a movie gets finished i listen for the endstate reload the data source and play the next video . Iam using EXOPLAYER and sending the surface of the textureview to the player . The…
user2949215
  • 663
  • 1
  • 7
  • 11
0
votes
1 answer

why my video doesnot fit the size of the texture as i change the size of the texture

Iam trying to animate a video rendered using texture view, the animation works fine , but when i scale the texture to a different size the media player does not scale to fit the size of the texture,the video is always playing full screen in the…
user2949215
  • 663
  • 1
  • 7
  • 11
0
votes
1 answer

Cannot play video in TextureView Android

I have a problem with playing video on some devices. I am using textureview with mediaplayer, every methods of SurfaceTextureView are called but when I just call mediaPlayer.start(), immediately the listener with completition of playing is called.…
Billda
  • 5,707
  • 2
  • 25
  • 44
0
votes
2 answers

How to put TextureView between other Layouts in Android correctly?

I've had an issue with putting GLSurfaceView between other layouts, as it turned out - it is impossible with GLSurfaceView. So I replaced GLSurfaceView by TextureView, but the issue wasn't solved. I have such structure in my main…
XZen
  • 225
  • 5
  • 27
  • 49
0
votes
1 answer

Squared Camera Preview Using TextureView

i had made camera preview to squared by setting Texture Matrix, like this: but when click the overflow button of actionbar or the button in bottom, the hidden part of camera preview will be shown, like this: I have no idea about this, could…
mayi
  • 1
  • 2
0
votes
1 answer

Textureview.getBitmap() making Main Ui thread sluggish

Am using Textureview.getBitmap() to grab frames every second from a Camera preview. it works perfectly except that it causes the main Ui thread to be Sluggish and sometimes even crash. please what do i need to do??.thanks Here is my Code: …
Donnie Ibiyemi
  • 971
  • 3
  • 15
  • 26
0
votes
1 answer

Rotate video in android

I have problem with rotate video in Android. I used TextureView to rotate the video but it didn't work fine. It show black screen on device Android 4.2.2. Any body have idea for rotate video? such as use SurfaceView. Please help me. Thanks.
Rin
  • 21
0
votes
1 answer

Switch camera on surface texture android

I want to do switch camera when user click the switch camera button. In my application am using surface texture instead of surfaceview how should i call setDisplay on switching camera.
rKrishna
  • 1,399
  • 12
  • 22
0
votes
1 answer

Draw manually to MediaPlayer's surface

I have TextureView that I set to MetoaPlayer to play video: TextureView textureView = new TextureView(context); addView(textureView, new LayoutParams(LayoutParams.MATCH_PARENT,…
Nik
  • 7,114
  • 8
  • 51
  • 75
0
votes
2 answers

Android texture view blinking

In the following application the screen is always blinking for some reason, also there are drawing artifacts just above the text. Is it possible to fix this? I am running Android 4.4.2 on a Nexus 7 device. package…
iggy
  • 1,613
  • 1
  • 18
  • 35
0
votes
1 answer

Android TextureView with MediaPlayer does not update for every frame

I am using Android MediaPlayer to play a video file on TextureView. I count the times the onSurfaceTextureUpdated callback is made and on some devices it is less than the number of the frames of the video, while in others it reaches the total number…
drgr
  • 43
  • 8
0
votes
1 answer

Android's TextureView setRotation issue

I've develop Unity3d's android plugin to play video so I use TextureView to render a video. Everything work well but when I want to set my TextureView object's rotation to 90 it will be invisible while another value such as 30, 60 even 89.92 work. I…
0
votes
0 answers

ran out of vram while creating opengles1.1 texture view

I used the below code from the link to create the opengles1.1 texture-view . My app has like a view which few buttons with 3D models names if user clicks the button a new texture view is created. If back is clicked user will be back the texture…
0
votes
2 answers

Why is there a preview of the taken image shown after I take a picture with the camera on Android?

when I make a call to mCamera.takePicture(null, null, null, null); (for simplicity I have omitted the callbacks) the preview freezes and shows a preview of the scene that was just captured. Why is that the case. Can I somehow control this behaviour?…
user2426316
  • 7,131
  • 20
  • 52
  • 83
1 2 3
19
20