craig
May 9, 2023, 10:06pm
2
I posted information on getting the motionjpeg stream here:
Try this to read a stream and display it to the console for testing.
const body = {'name': 'camera.getLivePreview'}
const response = await fetch('http://192.168.1.1/osc/commands/execute',
{method: 'POST',
body: JSON.stringify(body),
headers: {'Content-Type': 'application/json'}
});
const data = response.body
const reader = data.getReader()
while (true) {
const {value, done} = await reader.read();
if (done) break;
console.log('Received', value);
}
console.log(data);
fake-theta no c…
I’ll try and practice a bit more with JavaScript and will likely take the Coursera React Native course by Meta .
If you and @erikrod1 want to take the online course at the same time, we can discuss topics in this forum and apply the knowledge to RICOH THETA mobile apps.