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
0
votes
1 answer
preview stretches when start video recording
I'm trying to make a custom camera activity. Everything works great until the MediaRecorder starts recording a video. The preview stretches horizontally without an obvious reason as below. I have tried changing the preview size and several…

abdulrahman
- 35
- 1
- 6
0
votes
1 answer
How to render OpenCV Mat using OpenGL ES 2.0 on Android NDK?
I already have a cv::Mat in Android NDK
cv::Mat grayMat;
grayMat.create(480, 720, CV_8UC1);
and a TextureView in JAVA.
public class MainActivity extends Activity implements TextureView.SurfaceTextureListener{
private TextureView mTextureView;
…

Julia Ding
- 173
- 16
0
votes
1 answer
Can I use TextureView to show the camera preview and detected line at the same time?
I want to show camera and lines which I detected in real-time (using i.MX6 and Android 4.4). I use Android camera .addCallbackBuffer to get frame and use TextureView to show camera Preview.
JNI (C++) : get frame buffer->convert byte[] to Mat->than…

Julia Ding
- 173
- 16
0
votes
0 answers
Draw on a video and save with the drawn values
I am trying to draw on a video and record those things in android. I tried it in FFMPEG but it was slow processing. Any other way to make video faster?
String[] complexCommand = {"-y", "-i", mVideoFile, "-i", mOverlayFile, "-filter_complex",…

Kamesh
- 1
- 2
0
votes
0 answers
How to crop the image from the TextureView
I want to crop the finger which is shows in the white region (i.e., a view). placed above the TextureView using framelayout. I've tried capturing the view and converting into bitmap but i doesn't help. Is there any solution available for this?…

Naveen Kumar
- 16
- 1
0
votes
2 answers
how to find out TextureView will work on an android device?
I'm implementing an IPTV project, So I have a TextureView that plays video. But in some cases it has no picture and only plays audio, because of some hardware accelerating window issues in set top box device.
So my question is how to find out…

Milad Yarmohammadi
- 1,253
- 2
- 22
- 37
0
votes
0 answers
How to play the video from local system using "SimpleMediaFensterPlayerController"
I am capturing video from video camera, and I want to view it before uploading. and I'm using SimpleMediaFensterPlayerController. its not playing the video.
is it possible to play the video captured and stored in local system . if so then how can it…

Sauda Sadaf
- 139
- 9
0
votes
1 answer
How to take frame from playing video in TextureView in concrete time?
// Play video when the media source is ready for playback.
mMediaPlayer.setOnPreparedListener(new MediaPlayer.OnPreparedListener() {
@Override
public void onPrepared(MediaPlayer mp) {
mMediaPlayer.start();
//…

Kateryna
- 81
- 7
0
votes
1 answer
Xamarin - Setting Camera feed as background
So, I'm trying to make a login activity with the camera feed as the background. I've tested the example on https://developer.xamarin.com/guides/android/user_interface/textureview/ and got it to work, but I need to it to be part of an activity. So, I…

Bart K
- 115
- 1
- 2
- 8
0
votes
1 answer
Android: reduce height of TextureView for camera preview
I'm studing this Google project with an example of Camera2 using: https://github.com/googlesamples/android-Camera2Basic
This example works perfectly. Now I want to have the area preview smaller than in this example; so I changed the ratio like…

anthony
- 7,653
- 8
- 49
- 101
0
votes
1 answer
Why MediaPlayer.seekTo() and onSurfaceTextureUpdated() not working inside loop?
I'm trying to get screenshots(bitmaps) of each 100ms frame from MediaPlayer video on textureview and the bitmap's color config should be ARGB_8888
I thought that onSurfaceTextureUpdated is called everytime I call mediaplayer.seekTo(timeframe), and I…

JP Kim
- 743
- 8
- 26
0
votes
0 answers
Strange behavior in xamarin android texture view app
I´m working in a mobile app (developed in xamarin for android) able to stream data from the camera, take the picture and save it in the memory. The app works but there´s something strange when it is deployed in different smartphones, as is showed in…
0
votes
0 answers
Video works in VideoView, not in TextureView
I need to be able to animate videos in and out of the view, so I'm using a TextureView. I'm streaming it from a Node.js server (using res.sendFile() from express). However, when the video gets played, I get this instead of the video.
Here's my…

Euroclydon37
- 667
- 7
- 20
0
votes
2 answers
Replace the camera stream in a Wikitude ArchitectView with an external video stream
I'm working on an Android mobile app oriented to the real time augmented visualization of a drone's camera view (specifically I'm working on a DJI Phantom 3 Professional with relative SDK). I'm using Wikitude framework for the AR part. Every…

giannisergente
- 31
- 3
0
votes
1 answer
TextureView Align Parent Right Programmatically
I have a customView extending from TextureView. I want this customView to always align_parent_right.
My method inside customView has the following code:
RelativeLayout.LayoutParams layoutParams = new…

1pratham
- 113
- 1
- 2
- 9