Android-ScalableVideoView icon indicating copy to clipboard operation
Android-ScalableVideoView copied to clipboard

Add a scalable camera view?

Open premnirmal opened this issue 9 years ago • 4 comments

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

premnirmal avatar Jun 25 '15 21:06 premnirmal

Thanks for your request!
Yes, I will implement Camera TextureView version. As soon as I publish its version, I will announce it.

yqritc avatar Jun 27 '15 09:06 yqritc

Any news on this update?

premnirmal avatar Jan 12 '16 16:01 premnirmal

@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.

yqritc avatar Jan 14 '16 13:01 yqritc

@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 :-) )

eygraber avatar Feb 09 '16 22:02 eygraber