Skip to content

DevLucem/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