pedroSG94 / metadata-spherical-injector

LIbrary for inject spherical metadata in photos and videos

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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'
}

About

LIbrary for inject spherical metadata in photos and videos

License:Apache License 2.0


Languages

Language:Makefile 61.5%Language:C 25.0%Language:C++ 12.6%Language:Java 0.9%