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
0 answers

Multiple TextureViews duplication content

I use custom TextureView to draw animation. Drawing runs in separate thread - here is drawing code: @Override public void run() { while (running) { try { Thread.sleep(currentFrameRate); } catch (InterruptedException…
peliken
  • 185
  • 8
0
votes
1 answer

Video recording from a textureview running mediaplayer

I am creating an android application which is running a mediaplayer on a textureview, and streaming video from the internet. Now, I want to record the same streaming video to a .mp4 file(or in any format) to SD card. how can I do it? I cannot use a…
Vanilla Boy
  • 258
  • 2
  • 12
0
votes
1 answer

MediaPlayer cannot play video from url

I am using a TextureView to play a video from my App-Engine server. I can play the video fine if I open the link in a browser. But MediaPlay has the following errors about file not found and then not being about to play the video I/MediaPlayer: Need…
learner
  • 11,490
  • 26
  • 97
  • 169
0
votes
0 answers

Playing video in TextureView crash when resuming from onPause

If I pause my activity, on returning I get a crash Caused by: java.lang.IllegalStateException at android.media.MediaPlayer.prepareAsync(Native Method) I want to be able to return to exactly where the video left off and continue from there. I also…
learner
  • 11,490
  • 26
  • 97
  • 169
0
votes
1 answer

Restart video when user come back on activity, It shows MediaPlayer(15228): error (1, -2147483648)

I'm playing video in home screen by using TextureView, but when I'm going to other activity and stay for long time means more than video length and come back to home activity then its showing blank video screen. private TextureVideoView…
0
votes
0 answers

Stop the draw of TextureView

I need any way to stop the draw of TextureView, not pause the video with MediaPlayer. But why? Because I want stop the draw of the video and do some transitions on that view, when these transitions end, release the video. I've tried to use…
Pedro Paulo Amorim
  • 1,838
  • 2
  • 27
  • 50
0
votes
1 answer

SurfaceTexture AttachToGLContext and Surface

I'm trying to find out whether I need to remake a Surface if I want to call the attachToGLContext method from a SurfaceTexture. I tried to look in the android documentation, but there is no mention. I'm guessing not because as far as I'm aware,…
Kongo
  • 71
  • 1
  • 2
  • 12
0
votes
1 answer

Issue in playing video in TextureView

I tried to play video on TextureView. I have googled it and gone through and this question on stackoverflow in order to play video in TextureView. I've used Local file instead of remote video stream in setDataSource(). I am not getting any error in…
Bhupesh
  • 477
  • 1
  • 8
  • 22
0
votes
1 answer

How to check a video has sound or not in Android?

I am using a TextureView with a MediaPlayer to play an mp4 video from a url. Is there any way I can programatically check if the video I am playing has sound? Edit: I'm using API 14, so I don't have access to the MediaPlayer method…
0
votes
2 answers

Is it possible to transplant the class TextureView to Android Honeycomb

I plan to implement a feature playing several videos in one screen simultaneously and video views can be scrolled while they are playing videos. I am going to add video views to a ListView which acts as their parent view. We should not use…
dragonfly
  • 1,151
  • 14
  • 35
0
votes
1 answer

Render Android MediaCodec output on two views for VR Headset compatibility

What I know so far is that I need to use a SurfaceTexture that can be rendered on two TextureViews simultaneously. So it will be: MediaCodec -> SurfaceTexture -> 2x TextureViews But how do I get a SurfaceTexture programmaticly to be used in the…
0
votes
2 answers

Video is in low fps when playing on TextureView

I'm creating video filter for Android app, so I'm using TextureView to play video and filter on its SurfaceTexture. But the FPS of video's always lower than original(30fps). As I checked on Galaxy S3, onSurfaceTextureUpdated() only enter 5~8 times…
Trung NT Nguyen
  • 403
  • 2
  • 14
0
votes
0 answers

whats the error means when use TextureView with the same SurfaceTexture at switch activities?

I want Aactivity jump to Bactivity,they are all playing video. I use lockCanvas() and unlockCanvasAndPost() for rendering bitmap. when switch activity,I remove Aactivity's textureview and pass the saved surfacetexture to Bactivity.And Bactivity use…
qqli
  • 196
  • 2
  • 6
0
votes
0 answers

SurfaceView and TextureView in the same application

I am developing an application using Camera2 API with no preview. I used Textureview for the camera part but, now I need to use a SurfaceView to display a dynamic image. I did some tests and I am getting this error: …
mmf
  • 9
  • 3
0
votes
0 answers

Draw image on camera preview and store as JPG

I'm trying to draw a Bitmap onto a camera preview that is displayed in a TextureView. The developers guide told me this: "It is important to note that only one producer can use the TextureView. For instance, if you use a TextureView to display the…
dumazy
  • 13,857
  • 12
  • 66
  • 113