Inspiration

What if any Unity developer can easily have their video be posted to Theta Video API?

This could potentially enable Theta Video for 3D apps, games and a whole host of future metaverse platforms and apps! (We all know that basically 90% of metaverses - including Decentraland - is made with Unity)

What it does

A simple no-external-dependency required solution that lets any Unity developer post your locally saved video to Theta Video API.

How to use it

UnityThetaVideoAPI Theta Token Video API wrappers for Unity https://docs.thetatoken.org/docs/theta-video-api-overview

No dependencies self-contained classes to upload and check progress from Theta Token Video API

/* *

Simple class to upload to ThetaVideo API

  1. Call PostVideo(string filename) with the locally stored video you want to upload
  2. subscribe a delegate for progress returned to VideoProgressInt - returns 0 when uploaded;
  3. Call CheckProgress with videoid to check progress */

How we built it

Unity C# (after testing each request out using Postman)

What I learned

The Theta Video API would often return null values, which led to Newtonsoft.Json failure unless this was explicitly set new JsonSerializerSettings { NullValueHandling = NullValueHandling.Ignore }

What's next for Unity Theta Video API SDK

Currently, only support single video upload, but the method can be called in succession.

  • Multiple video uploads
  • Upload from existing URL
  • Package as Unityplugin and publication on Unity Asset Store

Contest Info

o Yosun Chang, Older than 18 years old (age of majority), United States

o yosun at nusoy dot com

o Which tracks you are submitting to: Video and Gaming

Built With

Share this project:

Updates