Code Monkey home page Code Monkey logo

Comments (10)

bk138 avatar bk138 commented on August 22, 2024

Thanks for reporting! To rule out an OS issue, please try https://gitlab.com/vijai/screenrecorder and check if it's able to record anything.

from droidvnc-ng.

Martii avatar Martii commented on August 22, 2024

On a Galaxy S8 the device likes to sleep the screen faster than the Android Settings so I have to tap the Home key on a keyboard, type (click technically atm) quickly the pass code, before seeing anything other than a black screen... don't know if this will help or not in an Android emu... might be worth a try though.

from droidvnc-ng.

r3d1r avatar r3d1r commented on August 22, 2024

On a Galaxy S8 the device likes to sleep the screen faster than the Android Settings so I have to tap the Home key on a keyboard, type (click technically atm) quickly the pass code, before seeing anything other than a black screen... don't know if this will help or not in an Android emu... might be worth a try though.

Don't know if I understood what you said, but, HOME key does nothing in the VNC Viewer but it sends the VM to the home screen, sending any app to the background, the expected behavior.
And the screen on the VM is configured to never sleep and it never does...

from droidvnc-ng.

r3d1r avatar r3d1r commented on August 22, 2024

Thanks for reporting! To rule out an OS issue, please try https://gitlab.com/vijai/screenrecorder and check if it's able to record anything.

I recorded a test video but was unable to play it,
Got a "Can't play this video" message.
Then I installed VLC to see if there was an issue with the default player and VLC didn't play the video too.
Tried to record again, then I realized that the recorded files was 0 bytes!
See image:
imagem_2021-09-03_094044

from droidvnc-ng.

r3d1r avatar r3d1r commented on August 22, 2024

I tried a lot of options and almost none worked.
What I remember is that the one that sort of worked out run as root.
Is it possible to run this one as root to test ? How ?

from droidvnc-ng.

bk138 avatar bk138 commented on August 22, 2024

I fear it seems that Android-X86 (or at least your build of it) does not support screen recording via MediaProjection, which is the API https://gitlab.com/vijai/screenrecorder and droidVNC-NG are using. You might want to try the original droidVNC which does things differently and requires root.

from droidvnc-ng.

bk138 avatar bk138 commented on August 22, 2024

PS: found https://android-x86.narkive.com/kTcgqWEG/is-it-possible-to-use-mediaprojection-to-capture-android-screen

from droidvnc-ng.

r3d1r avatar r3d1r commented on August 22, 2024

I fear it seems that Android-X86 (or at least your build of it) does not support screen recording via MediaProjection, which is the API https://gitlab.com/vijai/screenrecorder and droidVNC-NG are using. You might want to try the original droidVNC which does things differently and requires root.

I tried the original droidVNC before asking for help here and the result was that it says Superuser access is granted but didn't load and message "Could not start server :(".
The one that sort of worked, XQ-VNCServer, seems to be an exactly copy with a lot of boring advertising stuff.

Even me being a programmer ( a very old one... ) this is beyond my technical skills, but from what is in https://osdn.net/projects/android-x86/scm/git/frameworks-base/commits/2f9dd0aa805ef1163111b243cc001223681290ca I suppose that MediaProjection was incorporated to Android-X86. Wasn't it ?
Is there a way to trace this ? I would be glad to do it if you send instructions.
Should I ask for help on Android-X86 project ?
Anyway, thanks for your attention!

from droidvnc-ng.

bk138 avatar bk138 commented on August 22, 2024

Even me being a programmer ( a very old one... ) this is beyond my technical skills, but from what is in https://osdn.net/projects/android-x86/scm/git/frameworks-base/commits/2f9dd0aa805ef1163111b243cc001223681290ca I suppose that MediaProjection was incorporated to Android-X86. Wasn't it ?
Is there a way to trace this ? I would be glad to do it if you send instructions.
Should I ask for help on Android-X86 project ?
Anyway, thanks for your attention!

The best thing to do is probably lots of researching and trying out. Maybe this is not supported at all in Android-x86, maybe it depends on build settings (what about the official emulator images, aren't those x86 as well - does screen recording work there?), maybe some special arguments to the API must be used, ...

from droidvnc-ng.

csiqueirasilva avatar csiqueirasilva commented on August 22, 2024

im running this droidVNC-NG on an android-x86 VM using qemu-kvm on an old Ubuntu 18. The VM has a vga adapter.

With that setup, I can succesfully connect, interact and capture images via TightVNC client or with a c# application using https://github.com/mRemoteNG/VncSharpCore

from droidvnc-ng.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.