ricohapi / theta-client

A library to control RICOH THETA
MIT License
18 stars 13 forks source link

demo-android has issuing in build #1

Closed ALAlliancetek closed 1 year ago

ALAlliancetek commented 1 year ago

when we import the demo-android, we faced the project build failure with the error.

 theta-client-main\theta-client-main\demos\demo-android\app\libs\theta-client-debug.aar.
    > zip END header not found

and we also found that

theta-client-main\theta-client-main\demos\demo-android\app\libs\theta-client-debug.aar

was not defined in app level build.gradle

we also run the below command, but nothing happened.

./gradlew publishToMavenLocal

so how we resolve the build failure issue?

simago commented 1 year ago

First, build theta-client and generate theta-client-debug.aar. Second, put the theta-client-debug.aar on theta-client-main\theta-client-main\demos\demo-android\app\libs. Then you can build demo-android.

Alternatively, wait for preparing to install theta-client.aar from Maven. We would announce it soon.

ALAlliancetek commented 1 year ago

@simago - Thanks !! Project build successfully, but sometime preview is not displaying in demo-android Also as of now we use theta-api2.1-android-sdk for capturing image and we are facing memory consumption issue while we load the preview of image after capturing, so this issue is also we faced in this client library as well, so how we reduce the memory usage or memory consumption during image load and try to capture more photo using RICOH 360 device.

Below is the memory consumption increasing while we capture 4-5 photos.

image

simago commented 1 year ago

When I use demo-android with THETA SC2 connected to PC using a USB cable, preview is not displayed. When disconnected to PC, no problem.

And I read your issue. This theta client does not depend on theta-api2.1-android-sdk. I tried to capture 20 photos using demo-android, but memory usage was not increased ( average 128MB, peak time under 200MB).

ALAlliancetek commented 1 year ago

@simago - I mean to say it's internally use the HttpConnection and the theta-api2.1-android-sdk was also internally used HttpConnections. I already know this is the only way to do operations with camera but this theta-client is only provides a better way to control the camera.

One of our client is totally depend on high usage of 360 camera through the android native application for their business and they faces the laggy performance while frequently use the camera so we want to provide a better solution with 360 camera performance

And I was not connected the camera using USB cable but still the preview is not displayed every time.

https://user-images.githubusercontent.com/38903968/218938559-661bd0f4-a16d-4e89-b490-161d163cd54d.mp4

Also the memory consumption is not on peak every time but many time we noticed that the memory used by the Image preview is not releasing after the preview stopped.

simago commented 1 year ago

@ALAlliancetek Thank you for capturing the video. I understand your situation. I try to investing preview problems.

simago commented 1 year ago

@ALAlliancetek We fixed the issue where live preview sometimes does not start with THETA SC2.