Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Zoomy for videos - Feature request #27

Open
ishaan-khan opened this issue Apr 24, 2019 · 3 comments
Open

Zoomy for videos - Feature request #27

ishaan-khan opened this issue Apr 24, 2019 · 3 comments

Comments

@ishaan-khan
Copy link

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.

@imablanco
Copy link
Owner

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

@faisalvv
Copy link

faisalvv commented Dec 25, 2019

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);
}

@Rehamgalal
Copy link

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants