theta library Null safety

Support for RICOH THETA API testing.

More dartdocs go here.

Classes

Preview
Sc2Preview
The SC2 has problems with dio, which is used for HTTP connections this class uses the http package instead of dio. there is a known problem with an error message when closing the stream, but the application appears to work.
ThetaBase

Constants

emptyBody → const Map<String, dynamic>
{}

Functions

checkForIdle() Future<String>
after startCapture Uses state to check for the camera readiness to get around a limitation in the SC2 API.
command(String baseName, {Map<String, dynamic> parameters = emptyBody, ResponseType responseType = ResponseType.json, dynamic additionalHeaders = emptyBody}) Future
baseName is 'takePicture', not 'camera.takePicture' responseType default is ResponseType.json use ResponseType.stream if using camara.getLivePreview and the response is a stream
commandStatus(String id) Future<String>
status of command. Returns "done", "inProgress", or "error" example of use: [...]
getLastFileInfo({dynamic fileType = 'all'}) Future<Map<String, dynamic>>
getLastImageUrl() Future<String>
getLastVideoUrl() Future<String>
getLivePreviewOld(StreamController controller, {int frames = 5, dynamic frameDelay = 34}) Future<void>
getOptions(List<String> options) Future<String>
Get camera options. The options must be a String list. [...]
getSc2Options() Future<String>
Be aware that options not supported by SC2 will cause this program to crash. For a list of available APIs: https://api.ricoh/docs/theta-web-api-v2.1/ For additional help or if you notice errors in the API documentation, please use https://www.theta360.guide 18 options can't be used with SC2 [...]
getZ1Options() Future<String>
Be aware that options not supported by Z1 will cause this program to crash. For a list of available APIs: https://api.ricoh/docs/theta-web-api-v2.1/ For additional help or if you notice errors in the API documentation, please use https://www.theta360.guide 6 can't be used with Z1 [...]
prettify(Map<String, dynamic> data) String
sc2ThumbGetBytes({int number = 5}) Future<List<String>>
setOption({required String name, required dynamic value}) Future<String>
set single option
thumbGetBytes({int number = 5}) Future<List<String>>