Metadata Spherical Injector

Additional

Language
Makefile
Version
1.0 (Apr 27, 2017)
Created
Nov 11, 2016
Updated
Apr 30, 2017 (Retired)
Owner
Pedro Sánchez (pedroSG94)
Contributor
Pedro Sánchez (pedroSG94)
1
Activity
Badge
Generate
Download
Source code
APK file

Show card

Metadata Spherical Injector

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

This library is a wrapper from two librarys.

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

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

Photo library should support all arquitecture and video library is only compiled for armeabi-v7a and x86 but you can compile it for others arquitectures.

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:

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

dependencies {
  compile 'com.github.pedroSG94.metadata-spherical-injector:metadatavideo:1.0'
}

Photo Library:

android {
  repositories{
    maven{
      url "https://oss.sonatype.org/content/repositories/snapshots"
    }
  }
}

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

dependencies {
  compile 'com.github.pedroSG94.metadata-spherical-injector:metadataphoto:1.0'
}