I’m connecting to a Theta V in unity and streaming out the preview image. Sometimes it connects, sometimes it doesn’t.
The first thing I do is send a POST to /osc/commands/execute with {“name”:“camera.setOptions”,“parameters”:{ “options”:{ “captureMode”:“image”} } }
When it works I get a HTTP/1.1 200 OK response and {“name”:“camera.setOptions”,“state”:“done”}
But when it doesn’t work I get a 404 not found error. I checked the request in wireshark and the good request and bad request seem to be the same byte for byte.
Thank you for the links. Yes I am setting that, here is an excerpt from a wireshark capture. In this case for whatever reason the camera replied to me 100 Continue but then did not start the stream. Other times I get 404, and sometimes it just works
Does your application issue another command prior to camera.getLivePreview? For example, do you set the mode to image? Try set a delay between the previous command and the camera.getLivePreview command. Ideally, use state or status to check that the camera is ready. If the behavior is inconsistent, it might be related to the camera load at the specific time the command is sent.
here’s what I would do to trace the problem:
upgrade to the latest firmware
place camera right next to the computer you are connecting to order to eliminate Wi-Fi signal strength problems
verify that liveStreaming works consistently with the official mobile app and use Wireshark capture on that app to see what the HTTP headers look like for the command. Maybe there is a difference?
test stream with Amelia Viewer
change the Wi-Fi frequency from 5GHz to 2.4GHz as a test
eliminate chance of strong wifi channel interference