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

How to dynamically stop and play new video in mediaplayer?

lets say I have 3 mp4 files a.mp4,b.mp4,c.mp4. How can I dynamically click on a button and shift from one file to another in mediaplayer . Mediaplayer will play a.mp4 and onclick of a button it will stop and play b.mp4 . How can I get this…
stack5
  • 430
  • 2
  • 10
0
votes
1 answer

Buttons not being shown when TextureView is implemented

So I implemented a TextureView through code. Now the buttons however are not being shown, and the onclick listener is giving me a null pointer exception. What am I doing wrong protected void onCreate(Bundle savedInstanceState) { …
dsuma
  • 1,000
  • 2
  • 9
  • 30
0
votes
1 answer

Video aspect ratio is not correct, I set a ratio of 1.333 and the video has 1:1

I use a Frame Layout, on which i bind my video player like this: private void initVideoPlayer(View root) { mVideoPlayer = new TextureViewVideoPlayer(width, height); mVideoPlayer.setOnErrorListener(this); …
rosu alin
  • 5,674
  • 11
  • 69
  • 150
-1
votes
1 answer

java.lang.NoSuchMethodError: No virtual method setDataSource(Landroid/content/res/AssetFileDescriptor;)V in class Landroid/media/MediaPlayer ERROR

I want to play video using textureview..but while running the app,it stops and Im facing the following error.I dont know what to do i tried a lot and spend nearly 8 hours to resolve this issue..but i cant..please help me to get rid of this..…
Vasanth .s
  • 1
  • 1
  • 2
-1
votes
1 answer

Screenshot of a TextureView

Is it possible to get a screenshot of an activity containing a texture view showing camera preview and an image over the texture view? Creating bitmaps resulted in blacked out background screens and could not find any solution for such a case in the…
-1
votes
2 answers

Circular video player using texture view in android

I have to create a circular video player using textureview in android. I don't have idea how to achieve this. Kindly help.
-1
votes
1 answer

Play Videos in a Listview

I've been looking for a solution for hours. I created a custom baseAdapter for listview. It's working fine with images. After imageView worked, i thought a VideoView would be fine too. Then, i saw i had to use a TextureViev instead of it, worked on…
-1
votes
2 answers

Method Camera.takePicture() crash on Nexus 5, but Xperia mini is OK

At first please excuse my bad English. I have problem with programmatically taking photo. I wrote an app, that makes collection of photos based on countdown timer and after that, photos are being processed using c++ code. I'm using dummy…
-1
votes
1 answer

Take Pictures from the Front Camera Android

This seems to be an old question, but I seriously need some help on this. What I Want I am having an activity where I want to show a small preview (or may not) of the user taking a picture of him/her using the front camera. When the user click a…
Aritra Roy
  • 15,355
  • 10
  • 73
  • 107
-2
votes
1 answer

android.view.TextureView cannot be cast to android.widget.TextView | Can't make it work

I'm building an app in Android Studio, in the app you can search in a SQLite database, it's not giving me any error when compiling but when it runs in the virtual device, it doesn't open, the app crash. The Logcat says that there's an error in the…
Thonka
  • 113
  • 1
  • 2
  • 8
1 2 3
19
20