Testing out theta-client 1.3.0 - React Native

In the RICOH THETA SDK 1.3.0 I am testing out some properties that are listed

I am showing these Options in Fake Theta first and then going to check if it is working with the real camera.

So far these options are working for me in Fake Theta.

OptionNameEnum.BurstMode,
OptionNameEnum.BurstOption,
OptionNameEnum.CompositeShootingOutputInterval,
OptionNameEnum.CompositeShootingTime,

Do not work for me in Fake Theta so far. I’ve commented them out.

Now I’m testing it with the Real camera. Next update post I’ll show results.

I found the API documentation for theta-client interesting.

1 Like

For Get Options, It seem’s that the Fake Theta is showing the results with the Text Component correctly on an emulator but when switched to a real device Android Tablet, I get no text on the screen.

  • I’m thinking it might be the way that the Theta-Client SDK handles the API calls.
  • Could be something with the the Android SDK since it shows on the emulator but not on the android tablet device.

I could try another method of rendering the <Text> Component as well.

On another unrelated note I’ve tested the Real Theta Camera with an Android Tablet and getThetaModel() gives me the correct result in the console but doesn’t render on screen as well. I can show results in an update post.

import React, {useEffect, useState} from 'react';
import {
  Text,
} from 'react-native';

import {
  OptionNameEnum,
  getOptions,
} from 'theta-client-react-native';

const GetOptions = ({ navigation }) => {
  const [optionNames, setOptionNames] = useState([]);

  useEffect(() => {
    const fetchOptions = async () => {
      const result = await getOptions([
        OptionNameEnum.AiAutoThumbnail,
        OptionNameEnum.Bitrate,
        OptionNameEnum.CaptureInterval,
        OptionNameEnum.CaptureMode,
        OptionNameEnum.CaptureNumber,
      ]);

      setOptionNames(JSON.stringify(result, null, 2));
    };

    fetchOptions();
  }, []);

  return (
    <Text>{optionNames}</Text>
  );
};

export default GetOptions;