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

Processing Frames from Mediacodec Output and Update the Frames on Android

I am doing a project on image processing stuff. I receive a raw h264 video stream in real time and decode it using MediaCodec. I have successfully displayed the decoded video on a TextureView or SurfaceView. Now I want to process each frame, do…
Vitt Volt
  • 337
  • 4
  • 17
4
votes
2 answers

How to make TextureView play video with round corners and bubble effect

I managed to play video with TextureView and MediaPlayer on Android. I did it like this: I created a Surface with SurfaceTexture: public void onSurfaceTextureAvailable(SurfaceTexture surfaceTexture, int w, int h) { mSurface = new…
dragonfly
  • 1,151
  • 14
  • 35
4
votes
1 answer

Android: playing many video simultaneously

I am developing a chat and we have high quality emoticons with extension mp4 (file size of about 300kb). GIF format is not used because of the poor quality and limited colors (256). I need to display the files in the ListView as cyclic video. Now…
Dmitriy Puchkov
  • 1,530
  • 17
  • 41
4
votes
1 answer

Android - How to Crop Camera Preview using TextureView

I have a preview that is WpxHp, I want to take HxW pictures, thus I want the user to see a preview window that has the same aspect ratio of the picture I'll take, not the one of the preview. How can I crop the preview using the TextureView? --…
LJSilver
  • 583
  • 7
  • 20
4
votes
3 answers

How to use glUniform1f in this example?

I've searched for, read and tried many different examples on how to pass a value into a GLSL program. But sadly every try was a fail :( What I plan to do is very simple: Just a little open gl 3d animation inside my Android App. Resulting from my GUI…
ArcticLord
  • 3,999
  • 3
  • 27
  • 47
4
votes
1 answer

How to make android TextureView to show video in correct orientation

I want to use Android_4.1 MediaCodec API to encode video data which captured from Camera,then decode the video data and show the video on TextureView. Now everything is OK,but the TextureView could not show the decoded video in correct…
Read Mark
  • 683
  • 3
  • 11
  • 19
4
votes
2 answers

Semi-Transparent TextureViews not working

I cannot change the transparency of a TextureView by setAlpha method to maske it semi-transparent as it is promised by the android SDK. For example mTextureView.setAlpha(0.5f) does not have any effect.
feisal
  • 585
  • 1
  • 8
  • 20
4
votes
0 answers

TextureView autorotate video stream on Nexus4 (but not on Galaxy S4)

When playback a video stream on TextureView, I saw different behaviors in Galaxy S4 and Nexus4. The video source is recorded by Android in portrait mode, thus video is 90 degrees rotated. (Android camera's default orientation is landscape so to…
4
votes
1 answer

how to clean the content of textureview. i use mediaplayer with textureview in listview

i want play a lot of videos in a ListView. just like the app called "vine". i use the TextureView and MediaPlayer to display a video. we know that the ListView will reuse the view. because of this mechanism i get a problem. for example :…
4
votes
2 answers

Android multiple camera preview

Is it possible to broadcast the android camera preview into 2 different SurfaceView controls at the same time? I have seen some apps that show effects into different previews in real-time, how do they achieve that? I read about the TextureView, is…
PerracoLabs
  • 16,449
  • 15
  • 74
  • 127
3
votes
1 answer

Is there a better/more efficient way to capture composite X windows in Linux?

As per subject I have the following pseudo-code to setup window capture in X (Linux): xdisplay = XOpenDisplay(NULL); win_capture = ...find the window to capture... XCompositeRedirectWindow(xdisplay, win_capture,…
Emanuele
  • 1,408
  • 1
  • 15
  • 39
3
votes
1 answer

How to display part of video use TextureView?

My video datasource is 1920*1080, and my textureView is 622px * 540px. and I only want to display part of the video in the TextureView. How to do this? please help me , thanks.
badboy_tqj
  • 300
  • 2
  • 14
3
votes
2 answers

how to add timestamp like a camcorder while recording video using GLES20

I want to display date/time while recording the video and it should be displayed when we replay the videos like we do it in CCTV video recordings. i can display shapes using GLES20 i want to use text inside video to display Timestamp i am using…
bipin
  • 1,091
  • 4
  • 12
  • 30
3
votes
1 answer

Android Video Processing - how to connect the ImageReader Surface to the preview?

I'm using Android's Camera2 API and would like to perform some image processing on camera preview frames and then display the changes back on the preview (TextureView). Starting from the common camera2video example, I've setup an ImageReader in my…
jimbo
  • 416
  • 1
  • 4
  • 14
3
votes
2 answers

Show rectangle in camera preview and crop image within it using android camera2

I have been trying to achieve something like this using android camera2. I want a rectangle to load on top of my camera preview and once i press a button to capture the image then the image should be cropped within the rectangle preview. I have…
mxs2649
  • 71
  • 2
  • 7