Did you know that you can create a custom application to interface with SamsungVR?

Formerly called MilkVR, the newly named SamsungVR service allows for sending 360-degree videos to Samsung’s high-quality transcoding service for playback on virtually every type of headset and system capable of playing these videos.

There are several steps you need to take to enable uploading these videos from your own mobile app or other system.

Get the SDK

If you are working on an Android application that wants to upload 360-degree, or spherical video, you will want to start by downloading the SDK.

Download the SamsungVR Android upload SDK from GitHub.

Follow the instructions in the README to get the API set up.

Now, you will need a key to access the SamsungVR API endpoints.

Get an API key

There is no official documentation right now for creating an API key, but it is a really easy process if you don’t mind firing up the command line on a Mac or Linux-based machine.

Key pieces you will need to adjust:

Your email: if the email account you use for SamsungVR is bob@gmail.com, it would be set as bob%40gmail.com. You would need to escape all applicable characters in your email and password for curl to send them properly.

There are several tools to encode values, and you can find them on the internet by searching for encodeURIComponent.

Your password: do the same with your password.

Your application’s name: set your application’s name instead of YourAppName in the example. Be sure that you don’t have any special characters that need to be escaped.

Now, let’s try this thing out.

View the API key creation commands

You will note that the login command uses a normal HTTP form, while the API key creation uses JSON encoding of the POST data. This is a somewhat inconsistent part of the SamsungVR API, so you will have to be careful with your data types.

Result

You should receive a result back with a single JSON result containing your app key.

View an example API key creation result

Some advanced API key creation settings

There is currently no way to modify an app key once created, so you need to create a new key to change any settings.

Several optional parameters can be set right now. These are:

  • camera_brand - set the name of your company, if your app is for a single 360 camera
  • camera_model - set the model name for a camera that uses this app key

Where do we go from here?

Overall, there are some powerful features under the hood, but the upload framework is currently very much in an experimental state.

So, share your comments, tweet at me, and most importantly, let’s create some amazing content that takes people where they have never been before!