Hello, I use web Ricoh API v2.1, it work’s well on Theta V and Z1 but when I use “camera.getLivePreview” on Theta SC2 I should get a content stream but I got null
If you’re working on a commercial project for company that has a business relationship with the RICOH sales team, you may be able to contact them and find out when the API documentation is going to be updated for SC2. That might help us.
I did some quick testing on Friday and I ran into some problems where my test programs ran on the THETA V and Z1, but not on the SC2.
I think we will be able to figure things out in time as the RICOH official mobile app seems to work fine with the SC2.
If I figure something out, I will definitely post here, but I have the same problem as you at the moment.
I have the same issue on an app I develop that use this API since the Theta V.
And the live streaming doesn’t work very well with the SC2, we have to send the same command several times in order to work.
And some commands makes the SC2 freeze completly, like this one :
Are you trying to tell me that the livePreview isn’t supposed to work with the SC2 ?
The empty returned values for previewFormat suggest that ?
Note that for me previewFormatSupport return a 1-length array : 1440 x 720 @ 30fps.
And again, it’s working for me, but the API is very unstable, making the camera crashes…
I’m developping a large-scale, commercial app as you said, we have also contacted Ricoh.
The live preview works. I have it working with the SC2. It also works with the RICOH THETA official app.
The return value (JSON format response) is incorrect and is different from the V/Z1.
It’s possible that your app is sending another API command at the same time as the live preview and thus crashing the app. This doesn’t occur with the V/Z1, but does occur with the SC2. I’ll send you a note by email. I’m going to send it to the email you used to register on this forum.
I know it works, as I said, it’s “just” very instable.
All you’re saying suggests that Ricoh needs to fix the API on the SC2 and publish a new firmware, because it’s inconsistent and buggy.
Maybe you can tell them to do so ?
In the meantime I’ve found a crappy workaround, which happens to be similar that the one suggested on your last link, but it’s not safe.
Thanks
I’m having a problem with javascript, can’t get the response
I can’t get the data in the response yet, so I can’t process it to display, the problem is that I can’t receive the response
that line is for client mode. If the client is using access point mode, you don’t need to use digest authentication.
I’m not familiar with React Native and do not know JavaScript very well.
In other languages, I know that the camera.getLivePreview is set up differently and you need to accept a stream.
For example, in Dart, you need to accept an async stream and set up a listener on the stream.
There’s likely JavaScript tutorials on the Internet that show how to use stream listeners.
As far as the API command is concerned, the way to start the stream is simple. Even though the command below is in dart, you can likely figure out that the API command is simple.