Questions tagged [android-textureview]

95 questions
29
votes
5 answers

Android Nougat: TextureView doesn't support displaying a background drawable

I have been using a TextureView in my android app, and it was working fine. Just recently I tested my code on an Android device with Android API 25 (7.1.2). Same code now does not work and throws the error, java.lang.UnsupportedOperationException:…
20
votes
3 answers

Playing video using textureview in recyclerview

I am trying to implement a list with videos like vine or Instagram app. Where they play video plays when list item is shown or fully visible and video pauses when list item gets hided. I am using textureview with media player to play a video from…
17
votes
4 answers

preview stretches in camera2 apis

Following are the screenshots when using texture view in camera2 apis.In full screen the preview stretches,but it works when using lower resolution(second image). How to use this preview in full screen without stretching it.
16
votes
5 answers

android textureview full screen preview with correct aspect ratio

I have been working with the camera2 api demo from google and unfortunately the sample application is built to display the textureview preview at approximately 70% of the screen height, after looking around I was able to determine that this was…
12
votes
1 answer

How to use mobile vision API with TextureView and Camera

I am using mobile vision API for scanning barcode. I am using TextureView to render camera on it. I read this github thread https://github.com/googlesamples/android-vision/issues/15 it seems mobile vision is not compatible with TextureView I see…
N Sharma
  • 33,489
  • 95
  • 256
  • 444
11
votes
4 answers

Play Video in RecyclerView - Play/Pause video when scrolled off screen

I've implemented a Recycler view of video players implemented using a texture view and media player. If I scroll down through the list I can click on the item and the video plays. However, with the recycler view once the view goes off screen it…
10
votes
2 answers

How Do I Determine the Default Orientation of Camera Preview Frames?

I am trying (again) to create camera preview logic that actually works properly, for all scenarios: any device: phone, tablet, toaster, whatever any camera: front-facing, rear-facing, side-facing, dog-facing, whatever android.hardware.Camera and…
CommonsWare
  • 986,068
  • 189
  • 2,389
  • 2,491
8
votes
1 answer

Play/Pause video when listitem get visible in recyclerview

I have implemented a recyclerview in which i am adding textures views as list items to play videos from url. Now like vine and instagram app i want to play a video when it is visible in the recyclerview and stop/pause video when listitem gets out of…
5
votes
1 answer

How to live stream video from camera using texture view and not surfaceview?

I have seen many examples on how to live stream video from android camera to rtmp server using surfaceview. One is here : https://github.com/begeekmyfriend/yasea But is it possible to stream the video from camera to rtmp using a textureview? If it…
5
votes
1 answer

TextureView with transparency

Is it possible to have a TextureView that has transparency, so that views below it (z-order) are visible? IOW parts of the TextureView are transparent, and the view that the TextureView is on top of shows through.
Patrick Jackson
  • 18,766
  • 22
  • 81
  • 141
5
votes
4 answers

Clean SurfaceTexture with black rect

I'm using Exoplayer and an GL SurfaceTexture (from a TextureView) to display a video. I'm reusing the same surface among video play. I release the player and instantiate a new one. When the SurfaceTexture is displayed the second time, it display…
Hugo Gresse
  • 17,195
  • 9
  • 77
  • 119
4
votes
0 answers

How to Edit and add Watermark or Text in a video with help of MediaCodec

How to add a textView or Watermark[Images] in a video . So that i can Overlay this bitmap at the bottom of the video on all frames and save the video on extarnal storage . After some search i found that there some helpful ways to do it which are…
4
votes
1 answer

Android video mirror effect

I'm working on a camera application that has to capture video in mirror effect. I used texture view to show video preview with mirror effect. Now video preview showing mirror effect but after video being captured and saved it don't have mirror…
Naseer Attari
  • 659
  • 6
  • 18
4
votes
1 answer

Screencapture:get Bitmap from Textureview and display in imageview android

can anyone suggest me how to get Bitmap from Textureview and display in Imageview I used following link but it didn't help. Advice on Android TextureView and Bitmap Rendering
Catcaty
  • 63
  • 1
  • 8
4
votes
0 answers

Camera2 camera transform

I'm having an issue with the Camera2 API, I'm basicly working with Google sample code (Camera2Basic), but I do changed the TextureView size so it does not span on the entire screen, the screen also have a ToolBar. The preview display I'm getting is…
Aviran
  • 5,160
  • 7
  • 44
  • 76
1
2 3 4 5 6 7