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
1 answer

How to know onSurfaceTextureAvailable is called for which TextureView

I am writing an application where I need to display two TextureView(s) on my activity. I am attaching videos to each of the TextureView instance using MediaPlayer objects using the following code inside onSurfaceTextureAvailable(): @Override public…
Swapnil
  • 1,870
  • 2
  • 23
  • 48
0
votes
1 answer

How to get fullscreen textureview using camera2?

I am trying to get a full screen preview of the camera. I read through the documentation of camera2 which says Each Surface has to be pre-configured with an appropriate size and format (if applicable) to match the sizes and formats available from…
ShrimpCrackers
  • 4,388
  • 17
  • 50
  • 76
0
votes
2 answers

When to flash in TextureView camera

I have a fragment for a custom camera on my application, and I am trying to implement a flash on/off button for my camera. Right now I have something like this: private Camera camera; private Camera.Parameters params; private boolean…
Ravers
  • 988
  • 2
  • 14
  • 45
0
votes
1 answer

Add Button inside a TextureView (Android/Java)

I searched for this and I didn't find any good result for my application. I am using a TextureView to stream the Camera Preview, and I would like to add a button inside this TextureView, so the button is placed on top of the camera preview. Just…
0
votes
1 answer

camera2 preview with SurfaceTexture works perfectly in SDK v21, but stays black in v23

I test SDK v21 on a Samsung Galaxy A3 (2014), v23 on a Nexus 5X. I tested the Camera2Basic example, too, and it works on both devices. I wonder how my little code restructuring (I use an Activity instead of a Fragment) causes this error on only one…
Andi
  • 457
  • 3
  • 19
0
votes
2 answers

Android, Buffers in textureView

I want to use TextureView for draw Math curves(a lot), which data source is external device. Here, every zone i draw, must add lines to previous. Down to TextureView render using 3 buffers, i would like the buffer i draw in each moment, has…
titgar
  • 27
  • 4
0
votes
0 answers

Stopping video in TextureView

I inserted textureview in my recyclerview,this guide I found in StackOverflow https://stackoverflow.com/a/17450763/6241501 but when I try to i,plement this in my recycler view I saw that video are all playing,but I need to all video be stopped when…
R.Proz
  • 47
  • 1
  • 9
0
votes
1 answer

Android oval textureview

I have a camerapreview displayed on a textureView which works pretty well. But I can't mask the textureView with a circular mask. As soon as I use masking nothing gets displayed. Is this not possible? Or is there another way?
0
votes
1 answer

Send frame to detector

I have a camera preview in TextureView. How to send camera frames to my barcode detector? barcodeDetector = new BarcodeDetector.Builder(this) .setBarcodeFormats(Barcode.ALL_FORMATS) .build(); barcodeDetector.setProcessor(new…
Andrey Rankov
  • 1,964
  • 2
  • 17
  • 33
0
votes
0 answers

Media player resizing after onPause/OnResume

I have an app with a news feed in which there can be multiple content types. I am using a RecyclerView for the list. I have a problem where if there is a video playing in the feed and they user sends the app to the background and then relaunches…
DJ-DOO
  • 4,545
  • 15
  • 58
  • 98
0
votes
0 answers

Android app using GLES20 Textureview keeps needing buffer memory till crash

I have an app that uses BLE and controls devices, also on the same activity I am using a TextureView that implements Surfaceview so there is 3D interactivity in a window on the same activity. It all works fine, but after a few minutes the app…
0
votes
0 answers

GLTextureView create hole behind it

Hello I worked on a GLTextureView to display an alpha video, but because of the alpha channel I setted setEGLConfigChooser(8, 8, 8, 8, 16, 0); I tried a first time with a GLSurfaceView but the problem was that it needed a setZOrderOnTop(true)to…
0
votes
0 answers

surfaceCreated() not called on loading of a customized SurfaceView inside a HorizontalScrollView

I am trying to embed a customized SurfaceView inside a HorizontalScrollView. I have set up everything correctly but I don't get a callback to my surfaceCreated() which is implemented as a part of SurfaceHolder.Callback interface. The part of the…
Swapnil
  • 1,870
  • 2
  • 23
  • 48
0
votes
0 answers

Android how to add a TextureView inside a ScrollView

I am using this 3D library : https://github.com/Rajawali/Rajawali and I am using org.rajawali3d.surface.RajawaliTextureView which extends a TextureView. I'd like to place it in a ScrollViewinside my layout XML file, but attempting to do so fails :…
Mackovich
  • 3,319
  • 6
  • 35
  • 73
0
votes
1 answer

Android play video in TextureView from raw or assets

I'm having an annoying problem with playing a video in TextureView from raw or assets folder... or even from the external storage. The code in the fragment looks something like this public class MainFragment extends Fragment implements…
Revynid
  • 1
  • 4