Questions tagged [android-textureview]

95 questions
0
votes
1 answer

.mkv Videos are lagging in textureview

I used Textureview with mediaplayer for playing videos.Its working fine for .3gp and .mp4 video types.But its lagging much for .mkv videos.I tried with videoview and surfaceview with mediaplayer.still the problem persists.if anyone having a solution…
0
votes
0 answers

TextureVideo, media player and aspect ratio

I have a TextureView in which a video is showing, a video previously recorded with device camera. The image in the video is stretched, and that is not acceptable. I did some research, and found this method: private void adjustAspectRatio(int…
Fustigador
  • 6,339
  • 12
  • 59
  • 115
0
votes
0 answers

Android MediaPlayer TextureView play video oom

I use MediaPlayer & TextureView,Repeats the video. But within a short while the program crashed, cause by OOM. I called mediaPlayer.release() in onSurfaceTextureDestroyed(), but it still crashes. Does any body has the same problem ? This is my code…
0
votes
3 answers

Android camera preview show only half bottom

I used this library https://github.com/pedrovgs/DraggablePanel and I have a youtube fragment at top side, a camera preview (inside a fragment) at bottom side. I want my camera preview show only half bottom part of camera (I don't take pictures, I…
0
votes
0 answers

Android camera2api preview size stretches

I m trying to do recording using camera2 api in android and my preview size stretches. can some help me why preview stretches here is my code: private void setUpCamera(int width, int height) { cameraManager = (CameraManager)…
0
votes
0 answers

Error in Initializing TextureView inside Service in android

I am getting error in initializing TextureView inside Service for Camera2 API. I want to capture Images with Camera2 API using Services. Below is my code: Camera Service: public class CameraService extends Service{ private static final…
0
votes
0 answers

Implement TextureView getSurfaceHolder in Android

Surface View has a method called getSurfaceHolder() which TextureView don't have. After digging into the source code, I am wondering is it possible to implement a getSurfaceHolder() in Textureview? Is anybody tried that? We have a bunch of things…
wukong
  • 2,430
  • 2
  • 26
  • 33
0
votes
1 answer

MediaPlayer within TextureView not working as intended

I've put in a MediaPlayer within a TextureView, which itself is located inside a ListView. Yesterday, the MediaPlayer worked as intended with a test .mp4 clip. Today, the MediaPlayer tries doing some kind of FFmpeg Extractor, for which i've been…
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

Using ImageReader with older Camera API (To be supported by API <20)

I took the Google example for using ImageReader from here. The code uses Camera2 API and ImageReader to such that querying image runs in different thread than previewing it. As I want to target Android KitKat (API 20), I need to modify the code to…
Hamid Bazargani
  • 847
  • 1
  • 15
  • 30
0
votes
1 answer

same SurfaceTexture for 2 views

Is it possible to use same surfacetexture for 2 views? If so, how? I use mediaplayer to play video and I want to play same video on 2 different views at the same time. I tried to create SurfaceTexture and then set this surface texture to both views…
Martin Vandzura
  • 3,047
  • 1
  • 31
  • 63
0
votes
0 answers

TextureView video's anti-aliasing

I'm using TextureView with MediaPlayer for my custom video component. If a video' size is larger or the same as the TextureView's size, then everything's fine. But if the size of the video is smaller (say 720x576 and the TextureView size is…
serg66
  • 1,148
  • 1
  • 17
  • 31
0
votes
1 answer

Android MediaExtractor crash when decoding some mp4 files. Libc fatal signal 11

I am using Google Grafika examples to display video on TextureView. "Double decode" to be more specific . Code work most of the time but for some mp4 files it crash giving only : libc: Fatal signal 11 (SIGSEGV), code 1, fault addr 0x0 in tid…
wonglik
  • 1,043
  • 4
  • 18
  • 36
0
votes
0 answers

Recording video in Android changes

I have a small problem when recording a video on my phone. I have followed this example to learn and get inspired: http://examples.javacodegeeks.com/android/core/android-video-capture-example/ Based on that ( btw a good example), it seems that when…
Khiem-Kim Ho Xuan
  • 1,301
  • 1
  • 22
  • 45
0
votes
0 answers

Android Video Player by using TextureView

I am making a android video player by using MediaPlayer and custom a TextureView . But my code had an error at line mContext.sendBroadcast(i); in the function of openVideo(); private void openVideo() { Log.e(TAG, "openVideo"); if (mUri ==…
Kanguru
  • 51
  • 4