THETA S WiFi Streaming with Unity

Spent some time playing with this. Simply open the project in Unity and it works.

I

It seems THETA V cannot directly use this demo?
I played it on Unity and error shows failure.
------------------frome here---------------

if (myWww.error == null) {
		Debug.Log("Success");
		outputJson = JsonMapper.ToObject( myWww.text );
		print( myWww.text );
	}
	else{
		Debug.Log("Failure");          
	}

well, I solved this problem.
This Wifi stream now work on THETA V too.

Then I try to package it into HoloLens like other app I developed before.
but it failed. It seems some Unity API need to update. and the usage was changed.
I will continue to work on it.

Continuing the discussion from HoloLens?:

2 Likes

well,I updated my unity to 2018.2.14f1 and did few modification, then it worked on HoloLens.
However,there are some problems:
The delay is very serious. Theta V camera stream video showed only about 0.5 FPS.
I think wifi signal and code compatibility issue coused this problem together.
when I wear HoloLens and walk, the HoloLens camera view moved with big lag, like not enough CPU resource.
when camera and HoloLens divided by a wall, the signal lost an HoloLens might be freezing.

any good idea?

Thanks for sharing your progress. Great news about the update.

The code base you are looking at is a bit old and using MotionJPEG.

Another strategy could be to use the plug-in API.

image

With the Hololens, is the only way to get the video to the headset through Wi-Fi?

This technique of using an external signalling server might be a fast way for you to get something going.

As you’re in Japan, you could try and contact the team at TwinCam Go, Tokyo Metropolitan University. They may be able to give you some tips with their project.

Thank you so much!
Sorry for the late reply.
I will check those researches and try to find out some solutions.

thanks!

1 Like

I recently got a loaner Oculus Go and will use it to test Wi-Fi streaming with webRTC and the NTT Enterprise Cloud WebRTC platform. I have not started the test yet. Note that the NTT Enterprise Cloud is free for community use with a sizable monthly quota.

There’s also plug-in code examples here:

https://plugin-dev-quickstart.readthedocs.io/en/latest/examples/main.html

The theta-plugin-live-streaming is a complete example using WebRTC SFU and the RICOH Cloud.

Hi

Sorry that I forget the answer. Hololens basically is a wireless equipment which has 3 connection methods, usb(small like cell phone) , buletooth and Wi-Fi. To get the video in different room, Wi-Fi seems the most suitable one.
Then, the new API you gave me(https://api.ricoh/docs/theta-plugin/), is Android standard, I don’t know how to use those API in Unity and don’t know whether it supports HoloLens. And I am seeking some information from the existing demo. Most of those demo is for Android… well, I’m a little upset, now I am learning WebRTC&Unity try to find out something.

By the way, I wanna know the relationship between RICOH THETA API v2.1 and Plug-in API version 1. And can the latter be used on various platforms(Unity to HoloLens)?

Can you use another PC to run the Unity app and then stream it to HoloLens?

Connect the THETA V to the PC with a USB cable. Make sure the Unity app detects the THETA V as a webcam. Run the Unity app on your PC. Try the technique above to get the display onto the headset.

It looks like you should be able to use SteamVR with the Mixed Reality Headset.

Do you have the THETA V running inside of your Unity app on your PC using this technique?


Alternate technique

Have you tried this this technique to use Wi-Fi streaming to another room into HoloLens?

If you’re building your app with Unity, you may not need to use either API. Most people are plugging the THETA V into a USB cable and connecting it to their PC. They run the Unity app on their PC and display it to the headset.

Hi ZHU,
How did you solve this problem? I have exactly the same problem with KeyNotFound and a Theta V. Thanks!

1 Like

Hi

The old package was for THETA S , but THETA V must using new API, several old API were not supported. So update the code to the new one can solve the problem.
I will upload my modified file tomorrow.

1 Like

Hi,
Thanks for the explanation. I will try to figure it out, but I would also be happy to see your modified file. :slight_smile:

ThetaWifiStreaming.zip (1.1 KB)

Sorry for the late upload.
Here is the file

1 Like

Thanks a lot! I will check it out!

HI

Have you tried out this demo in THETA V client mode?
Unlike AP mode, client mode is not successful because it requires digest authentication.
Capture5

1 Like

This is good info, thanks for posting. Did you get it working in AP mode first? Did it work for you?

Hi jcasman,

Yes, I tried AP mode, and it worked.

As codetricity shows an example of implementation in python, I think that it is probably possible even with Unity C#.

1 Like

Great, thanks for adding this.

Hi,

I modified the project to correspond to AP mode and Client mode of Theta V.

I haven’t tried it yet, but I think it will also work with Theta Z1.

1 Like