Metadata Spherical Injector

Additional

Language
Makefile
Version
1.1 (Jun 13, 2022)
Created
Nov 11, 2016
Updated
Jun 13, 2022 (Retired)
Owner
Pedro Sánchez (pedroSG94)
Contributor
Pedro Sánchez (pedroSG94)
1
Activity
Badge
Generate
Download
Source code

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