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
Test it out using the demo scene TheThetaVideosBarebonesTester. The entire Demo folder can be removed.
See https://devpost.com/software/unity-theta-video-api-sdk for more
-
Call PostVideo(string filename) with the locally stored video you want to upload
-
(Optional) Subscribe a delegate for progress returned to VideoProgressInt
- returns -1 when uploaded
- returns -2 when transcode begins
- all other progress values are from API
- returns 100 when uploaded;
-
Call CheckProgress (with optional videoid if not the last uploaded/transcode requested video) Upon completion: populates playback_uri and player_url in dicURLs[uploadid]
-
(Optionally) pass delegate for upload status to AssignCallbackUploadProgress