It can be easily view the doted rectangle over the video, so, please suggest how to get rid of these issue.. thank you for your concern
Related
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.
I have solved it, i want it. https://github.com/dmytrodanylyk/video-crop/blob/master/library/src/com/dd/crop/TextureVideoView.java
I know that I can use RenderScript on Android to blur images, but does anybody know if I can apply the same to video views so that my complete video is gaussian blurred?
VideoView, which extends SurfaceView, does not utilize the drawing cache due to being hardware accelerated. This means you won't be able to get stills. I was forced to scrap the design I had using the paused video still.
Check out: VideoView getDrawingCache is returning black
Edit: As I look into this more, there might be a way through https://github.com/google/grafika, but I haven't seen anyone verify it as a performant workaround.
You should use a thumbnail of the video in front of it. You can then, blur the image using this lib: https://github.com/jrvansuita/GaussianBlur
I want to make a small part of the image glow whenever the activity is loaded. Do I need to take the exact coordinates of the image part?
I recommend using a GIF. It can be loaded as an image and won't require any changes in your code. A smallish tutorial can be found in this Youtube video.
I'm new to android. What I need is to play 2 videos at the same time exactly on top of each other. By applying a bitmap mask on the top video the bottom video will be revealed through the mask. I only found the answer of how to overlay an image with a bitmap mask. Any help would be appreciated. Please give a complete code if possible. Thank you
I want to play a video giving fixed height and width, not whole screen.
Can anybody tell me how to play the video in a surface view on android? Please provide sample code
Thanks
Maybe a VideoView is what you want. I found some sample-code here.
Please try below:
surfaceholder.setFixedSize(width,height);