Android-ScalableVideoView
Android-ScalableVideoView copied to clipboard
Add a scalable camera view?
This is a great library. I noticed that since you're using a TextureView as the base view (and not VideoView), the same scaling can also be applied to a TextureView
attached to a Camera
. I see that ScalableVideoView
has a lot of media player logic in it. Is it possible to have a version that doesn't use the media player and performs scaling using CameraParams
Thanks for your request!
Yes, I will implement Camera TextureView version.
As soon as I publish its version, I will announce it.
Any news on this update?
@premnirmal Sorry for leaving this issue. Actually I did try to create this after I got your request. I created camera preview with scalable functionality, but I got stuck for creating the functionality to save the bitmap having preview scalability... It was not as easy as I thought. I would try this again if I get more request for this function.
@premnirmal If you need just CENTER_CROP
check out https://github.com/staticbloc/media which offers that functionality for the camera (the classes involved are in the UI package, and there's a sample app that uses them). It's in early alpha, and is under active development.
@yqritc Sorry to hijack the thread. Feel free to delete this post if you don't want it here (my library deals with the camera, so I don't believe we're competing :-) )