pedroSG94/metadata-spherical-injector


LIbrary for inject spherical metadata in photos and videos

Download


Step 1. Add the JitPack repository to your build file

Add it in your root settings.gradle at the end of repositories:

	dependencyResolutionManagement {
		repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
		repositories {
			mavenCentral()
			maven { url 'https://jitpack.io' }
		}
	}

Add it in your settings.gradle.kts at the end of repositories:

	dependencyResolutionManagement {
		repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
		repositories {
			mavenCentral()
			maven { url = uri("https://jitpack.io") }
		}
	}

Add to pom.xml

	<repositories>
		<repository>
		    <id>jitpack.io</id>
		    <url>https://jitpack.io</url>
		</repository>
	</repositories>

Add it in your build.sbt at the end of resolvers:

 
    resolvers += "jitpack" at "https://jitpack.io"
        
    

Add it in your project.clj at the end of repositories:

 
    :repositories [["jitpack" "https://jitpack.io"]]
        
    

Step 2. Add the dependency

	dependencies {
		implementation 'com.github.pedroSG94:metadata-spherical-injector:1.1'
	}
	dependencies {
		implementation("com.github.pedroSG94:metadata-spherical-injector:1.1")
	}
	<dependency>
	    <groupId>com.github.pedroSG94</groupId>
	    <artifactId>metadata-spherical-injector</artifactId>
	    <version>1.1</version>
	</dependency>

                            
    libraryDependencies += "com.github.pedroSG94" % "metadata-spherical-injector" % "1.1"
        
        

                            
    :dependencies [[com.github.pedroSG94/metadata-spherical-injector "1.1"]]
        
        

Readme


Metadata Spherical Injector

Release

Library for inject spherical metadata in photos and videos on Android. Only MP4 and JPEG formats supported

This library is a wrapper from two libraries:

Photo: https://github.com/dragon66/pixymeta-android

Video: https://github.com/cievon/spatial-media/tree/master/spatialmedia

Permission

Only write storage permission needed:

<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/>

Code Example

Video Library:

VideoInjector videoInjector = new VideoInjector();
videoInjector.injectVideo("your_file_origin_path", "yout_file_destiny_path");

Photo Library:

PhotoInjector photoInjector = new PhotoInjector(context);
try {
  photoInjector.putMetadata("your_file_origin_path", "yout_file_destiny_path");
} catch (IOException e) {
  e.printStackTrace();
}

Compile

Video Library:

repositories {
  maven { url 'https://jitpack.io' }
}

dependencies {
  implementation 'com.github.pedroSG94.metadata-spherical-injector:metadatavideo:1.1'
}

Photo Library:

repositories {
  maven {
    url "https://oss.sonatype.org/content/repositories/snapshots"
  }
  maven { url 'https://jitpack.io' }
}

dependencies {
  implementation 'com.github.pedroSG94.metadata-spherical-injector:metadataphoto:1.1'
}