Skip to content

PinchZoom on TextureView while playing your videos

License

Notifications You must be signed in to change notification settings

matteopaolucci/ZoomableVideo

 
 

Repository files navigation

PinchZoom Lucem

This project implements pinch zoom on texture view on android which allows you to play a video while zooming around it in real time

Illustration

Zoomable Texture

Implementation

Add jitpack to repositories in the root build.gradle file

allprojects {
	repositories {
		...
		maven { url 'https://jitpack.io' }
	}
}
Add the Dependancy
dependencies {
	        implementation 'com.github.Lucem-Anb:ZoomableVideo:1.0.0'
	}

Usage

In XML

<com.lucemanb.zoomable.ZoomableTextureView
        android:id="@+id/textureView"
        android:layout_width="match_parent"
        android:layout_height="match_parent" />

in Java

new ZoomableTextureView(this)

Customizations for the maximum zoom and minimum zoom

maxScale
minScale

Enjoy

About

PinchZoom on TextureView while playing your videos

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%