目录

 

1. Development Preparation FAQs  

1.1 How can I obtain HUAWEI Panorama Kit capabilities?

Make sure that the operating system and HMS Core (APK) running on phone using which you want to access HUAWEI Panorama Kit capabilities are of the required versions. If you are using a Huawei phone, it already has HMS Core (APK) preinstalled.

1.2 Is HUAWEI Panorama Kit called on the server?

HUAWEI Panorama Kit is called only on the client, focusing on the construction, rendering, and interaction of 3D models during panorama display.

1.3 What are the requirements of HUAWEI Panorama Kit on mobile phones and software?
 

Huawei devices that run Android versions later than 6.0 and has HMS Core (APK) 4.0.0.300 or later installed support HUAWEI Panorama Kit.

1.4 Is HUAWEI Panorama Kit free of charge?
 

All APIs provided by the Panorama SDK are free of charge.

1.5 Does HUAWEI Panorama Kit involve user privacy?

During loading, modeling, rendering, and display of panoramas, HUAWEI Panorama Kit does not store or upload image information and part of the images so that user privacy is not involved.

2. Development Processing FAQs  

2.1 Which of the following panorama formats are supported by HUAWEI Panorama Kit?

JPG, JPEG, and PNG.

Panoramas in these formats can be displayed in spherical or cylindrical mode.

                            

Spherical panorama      Cylindrical panorama                

2.2 What is the size of a panorama supported by HUAWEI Panorama Kit?  

The size of a 2D image to be browsed cannot exceed 20 MB, and the resolution cannot exceed 16384 pixel * 8192 pixel. As the image size increases, the response time, memory usage, CPU usage, and power consumption increase accordingly.

2.3 Why does the loadImageInfo(Context context, Uri uri) API return a failure message when a panorama is correct?
 

Cause analysis:  

The loadImageInfo(Context context, Uri uri) API checks whether the XMP metadata in the panorama carries GPano tag information. If not, a failure message is returned.

Solution:  

You can use PendingResult<ImageInfoResult> loadImageInfo(Context context, Uri uri, int type) to specify a panorama type for forcible redirection.

2.4 Which attributes are set or obtained by setValue or getValue?  

Find the attributes set/obtained by setValue/getValue in the Public Field Summary section in PanoramaInterface. The attributes may vary depending on the version. In 4.0.3.300, the setValue/getValue method is used to set/obtain the rendering mode (KEY_RENDER_MODE), azimuth (KEY_CURRENT_AZIMUTH), and horizontal angle of view (KEY_CURRENT_HORIZONTAL_FOV) of a panorama.

2.5 Can panoramas be displayed in polar coordinates outside an app?

Not yet. Polar coordinates are supported only for displaying panoramas in an app. To experience this function, please refer to Panorama Presented in an App.  

2.6 Can HUAWEI Panorama Kit display a panoramic video in cylindrical mode?

Yes, certainly. But remember to specify the aspect ratio for the video you want to display in cylindrical mode. Otherwise, the default aspect ratio 2:1 will be used. If the video's aspect video is different from the default one, its images will be compressed or stretched, affecting user experience.

2.7 When do I need to set the aspect ratio for a panoramic video displayed in cylindrical mode?

Anytime after obtaining the surface used for video display. Make sure that you use the video's actual aspect ratio in your settings. You can obtain the video's width and height after calling mediaplayer.Prepare.

2.8 Can I dynamically switch between panoramic image and panoramic video?

Yes, this operation is allowed. However, images and video resources should be managed by yourself.