budtmo / docker-android

Android in docker solution with noVNC supported and video recording
Other
9.62k stars 1.27k forks source link

Moving inside emulator virtualscene keys not working #128

Open marad9016100 opened 5 years ago

marad9016100 commented 5 years ago

Please make sure that it is an issue / a feature request. If it is a question / help wanted, please visit our group chat. Thank you!

Operating System: Ubuntu 14.04.5 LTS

Docker Image: butomo1989/docker-android-x86-9.0

Docker Version:
Docker version 18.06.0-ce, build 0ffa825

Docker-compose version (Only if you use it):

Docker Command to start docker-android:
docker run --privileged -itd -p 6080:6080 -e APPIUM=false -e AUTO_RECORD=false -e DEVICE="Samsung Galaxy S6" -e EMULATOR_ARGS="-camera-back virtualscene" butomo1989/docker-android-x86-9.0

please note -e EMULATOR_ARGS="-camera-back virtualscene"

Expected Behavior

Open camera. Moving is possible using "Alt" + one of the "QWEASD".

Actual Behavior

Open Camera. Moving inside virtualscene should be possible using "Alt" key + one of the "QWEASD" keys. Rotation using mouse works fine, but view poitn can't change position. Looks like using "Alt" key is passed properly, but letters are not passed to virtualscene navigation.

budtmo commented 5 years ago

Hi @marad9016100 ,

Thank you for opening the issue. Could you also add / attach sample application to debug that issue? or if you want, you can also work on it and create a PR. It would be great.

marad9016100 commented 5 years ago

Hi @butomo1989 , thank you for very quick replay.

Just run image docker-android-x86-9.0, pass parameter -e EMULATOR_ARGS="-camera-back virtualscene"

e.g. docker run --privileged -itd -p 6080:6080 -e APPIUM=false -e AUTO_RECORD=false -e DEVICE="Samsung Galaxy S6" -e EMULATOR_ARGS="-camera-back virtualscene" butomo1989/docker-android-x86-9.0

Then use system "Camera" app shipped with emulator. Camera should display inside virtual room. The issue is that moving inside room keyboard "QWEASD" is impossible.

marad9016100 commented 5 years ago

I was able to workaround this issue by sending keys directly from terminal e.g xdotool key --clearmodifiers Alt+a

budtmo commented 5 years ago

Hi @marad9016100 ,

could you write documentation about it and create a PR? just in case someone has similar issue like you had.

marad9016100 commented 5 years ago

Hi @butomo1989 unfortunately my workaround is not working well. I am able to move inside virtual scene using commands passed via terminal but it requires killing command during passing. Then there is random move inside virtual scene. So moving is not intentional but random. It is definitely not good solution.

Noman5253 commented 4 years ago

Same thing is happening with me. I am running a demo AR app on emulator [Pixel 2 Oreo]. App runs successfully, it show the animation to move the camera, when I press Alt, emulator sense that alt is pressed but when I move mouse or press ASDWQE (holding Alt) nothing happens. View does't even move, and the animation(tutorial) keeps running. Please help.

0xhex commented 4 years ago

Same issue help pls

0xhex commented 3 years ago

solution ? @Noman5253

IamBiswajitSahoo commented 3 years ago

Run the Emulator as a standalone app for the Camera's Virtual Scene to work.

From Android Studio > Settings > Tools > Emulator > Untick "Launch In A Tool Window" > Rerun the Emulator from AVD Manager.

As Virtual Scene in Camera requires extended controls.

If Using for AR Apps: Refer: https://developers.google.com/ar/develop/c/emulator

Displee commented 2 years ago

Same issue, however, I did find a workaround. Edit /root/emulator/resources/Toren1BD.posters and add the following lines to it:

poster custom
size 1 1
position 0 0 -1.8
rotation 0 0 0
default custom.png

Then add a file called custom.png in the same directory. This will show your picture like this:

Schermafbeelding 2022-06-23 om 17 11 49