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

SurfaceTexture in Android plugin doesn't work in Unity

I can't get the texture tied to a SurfaceTexture to display in Unity. Update 4: Based on the pipeline in update 1 (surface->external texture via surface texture -> fbo -> texture 2d) I know the SurfaceTexture isn't properly converting its surface to…
5
votes
1 answer

Scale video on textureview to give appearance of centercrop

I am repeatedly playing a video in a textureview whose purpose is to display a background video. I need the textureview's width and height to be set to match_parent. I want to scale the video so that it looks cropped on the textureview playing it. I…
Chandan Pednekar
  • 525
  • 5
  • 19
5
votes
1 answer

TextureView TranslationX & Y not expected behaviour on API 23

Currently I am making a camera player with a textureview to render my camera. Because the preview can have any dimension I have created some custom code to alter the textureview when OnSurfaceTextureUpdated is called: void…
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

What's the difference between VideoView and TextureView and Suraceview in android?

What's the difference between VideoView and TextureView and Suraceview in android? And when do I use each one?
Kishor Ramani
  • 607
  • 1
  • 6
  • 12
5
votes
1 answer

Android - rendering same video on Multiple views

I have a media datasource, and I am playing the media using android MediaPlayer. How can I display the video output from the MediaPlayer to multiple views in the same Activity, is there any alternative ways to do this? I want the video part of the…
shubendrak
  • 2,038
  • 4
  • 27
  • 56
5
votes
0 answers

android textureview onsurfacetexturedestroyed not called

I have demo apllication from android manual Its working good with my nexus 4 but wont with Samsung SIII. When application goes to onStop on Nexus I got onsurfacetexturedestroyed. When application goes to onStop on SIII - I didnt got…
Sergey Maslenyuk
  • 103
  • 1
  • 10
5
votes
1 answer

How to take snapshot of RTSP streaming using LibVLC for Android

I am using libVLC in an Android application for RTSP streaming. Since video is loaded over SurfaceView in libVLC, we cannot take snapshot directly. So how to support snapshot functionality with LibVLC for Android? One solution would be by loading…
Jickson
  • 5,133
  • 2
  • 27
  • 38
5
votes
1 answer

Playing a video after a video in Android's TextureView has issues

Using a MediaPlayer inside a TextureView to play videos, it works. When a video ends and another video should be played, I resize the TextureView to fit the up-coming video's aspect-ratio (example - from 3:4 to 9:16 and so on..). The problem, after…
Miko Diko
  • 944
  • 1
  • 13
  • 33
5
votes
2 answers

MediaPlayer cannot render to TextureView after image render

I have a MediaPlayer rendering videos to a TextureView. This is working. Now, I want to display a still image on this TextureView for a given time, then get the MediaPlayer to render a video to the same TextureView. Here's my code to render the…
Andrew Shepherd
  • 44,254
  • 30
  • 139
  • 205
5
votes
1 answer

How to reduce latency in MediaCodec video/avc decoding

I performed some simple timing of MoviePlayer.java in the Grafika MediaCodec sample code running on a Nexus 5. I put a log statement at these locations: At line 203 just before decoder.queueInputBuffer At line 244…
Peter Tran
  • 1,626
  • 1
  • 17
  • 26
5
votes
3 answers

TextureView throwing fatal signal 11 after resuming application

I have a TextureView based on Romain Guy's example which can be found here. On Android 4.3 and 4.4, after a few rounds of pausing and resuming the application, the application crashes and the only trace of an error is a fatal signal 11 in LogCat. I…
Kaleb
  • 1,855
  • 1
  • 18
  • 24
4
votes
2 answers

Options to efficiently draw a stream of byte arrays to display in Android

In simple words, all I need to do is display a live stream of video frames in Android (each frame is YUV420 format). I have a callback function where I receieve individual frames as a byte array. Something that looks like this : public void…
Crearo Rotar
  • 559
  • 7
  • 23
4
votes
0 answers

Display stream of byte array frames to textureview

I am trying to display a stream of frames received over network and display them to TextureView. My pipeline is as follows: Receive video using GStreamer. I am using NDK. Gstreamer code is in C. I am using JNI callback to send individual frames…
Crearo Rotar
  • 559
  • 7
  • 23
4
votes
0 answers

Android MediaPlayer streaming video setSurface jump back

I m developing an Android app which can play streaming videos and navigate through the app with the video playing in background. The video is playing on a Service and to watch the video i set the MediaPlayer's surface to a SurfaceTexture of a…
jos
  • 1,070
  • 12
  • 22
1 2
3
19 20