Igalia / wolvic

A fast and secure browser for standalone virtual-reality and augmented-reality headsets.
https://wolvic.org
Mozilla Public License 2.0
802 stars 102 forks source link

Battery level for controllers is not displayed in HVR build #34

Open matlu opened 2 years ago

matlu commented 2 years ago

Configuration

Wolvic version: Wolvic build ID: 0.9.3

Hardware: Huawei VR Glass 6DoF

Steps to Reproduce

  1. Open the Wolvic Browser
  2. Observe the menu on the bottom of the screen. You can see SSID and battery level for headset but not for the controllers
  3. Leave the Wolvic browser and check the VR Home screen. Here you can see the battery level for the Left and Right controller

Current Behavior

Expected Behavior

Possible Solution

Context

Error Logs and Stack Traces

``` ```
svillar commented 2 years ago

We're using OpenXR for the Huawei VR glasses controllers. AFAIK there is no OpenXR API that allows retrieving.

What we could do, is to create a DeviceDelegateHVR extending the DeviceDelegateOpenXR which would update the controller state on StartFrame() using the HVR API if it exists.

svillar commented 2 years ago

We're using OpenXR for the Huawei VR glasses controllers. AFAIK there is no OpenXR API that allows retrieving.

BTW, in case you wonder, the battery level is properly shown for the glasses because we retrieve it from the system (Android provides it).

fwei-io commented 2 years ago

Thanks for noting, HVR 6DoF controller battery level API is not made public yet, the team is working on it.

elima commented 2 years ago

@fwei-io, what's the status of this new API? Thanks

fwei-io commented 2 years ago

@elima HVR team is still working on it, will ping for latest status

svillar commented 2 years ago

Filed this issue since the original one was closed