Zoomy icon indicating copy to clipboard operation
Zoomy copied to clipboard

Zoomy for videos - Feature request

Open ishaan-khan opened this issue 5 years ago • 3 comments

You've got an amazing library, If you can release an update with video zoom it'd great!

Please update if it is planned in the update pipeline.

ishaan-khan avatar Apr 24 '19 07:04 ishaan-khan

Not planned in the short-mid term cause this would require a full change on how the lib works (just making a Bitmap copy of the target).

imablanco avatar Jul 30 '19 11:07 imablanco

For video Fixed. zoomy.zip

implementation project(path: ':zoomy')

private void registerZoomy(PlayerView videoPlayerView, SimpleExoPlayer player){ Zoomy.Builder builder = new Zoomy.Builder(activity) .target(videoPlayerView,player,(PlayerView) videoPlayerView) .interpolator(new OvershootInterpolator()) .tapListener(new TapListener() { @Override public void onTap(View v) { com.google.android.exoplayer2.util.Log.d("teyaar-faisal","single tap"); } }) .longPressListener(new LongPressListener() { @Override public void onLongPress(View v) {

                }
            }).doubleTapListener(new DoubleTapListener() {
                @Override
                public void onDoubleTap(View v) {

                }
            }).zoomListener(new ZoomListener() {
                @Override
                public void onViewStartedZooming(View view) {
                    com.google.android.exoplayer2.util.Log.d("teyaar-faisal","zoom out");
                }

                @Override
                public void onViewEndedZooming(View view) {
                    com.google.android.exoplayer2.util.Log.d("teyaar-faisal","zoom dismis");

                   videoPlayerView.setPlayer(null);
                    videoPlayerView.setPlayer(player);

                }
            });

    builder.register(Zoomy.VIDEO);
}

faisalvv avatar Dec 25 '19 09:12 faisalvv

@faisalvv It's working fine for videos thank you , only one issue after releasing the touch and ending the zooming the video is stopped only becoming an image

Rehamgalal avatar Jun 16 '20 06:06 Rehamgalal