JAVA : get meta data from Target.meta() function

0 votes
asked Aug 4, 2017 by kvantum (380 points)
Hi !

I use CRS console for testing. So, for upload at the "META" field of my target i created text file with text inside "https://sightpvideo-cdn.sightp.com/sdkvideo/EasyARSDKShow201520.mp4"

In my JAVA code :

ImageTarget target = ...;

String meta_data = target.meta();

The value of meta_data variable is "aHR0cHM6Ly9zaWdodHB2aWRlby1jZG4uc2lnaHRwLmNvbS9zZGt2aWRlby9FYXN5QVJTREtTaG93MjAxNTIwLm1wNA=="

How can i get the corect link on my stream video file from uploaded meta file ?

1 Answer

+2 votes
answered Aug 4, 2017 by kvantum (380 points)
 
Best answer

I have found the answer myself !

Somethig like 
String result = new String(Base64.decode(imagetarget.meta(), Base64.URL_SAFE));
Welcome to EasyAR SDK Q&A, where you can ask questions and receive answers from other members of the community.
...