![]() This approach is much faster than running screencap on the Android device to take a screenshot. When the VNC server is running on the phone, starting the VNC server binary with the -U flag will instead send a signal to the VNC server and cause it to save the current frame to /data/local/tmp/screen.png. JPEG encoding is done using the included libjpeg-turbo library, while PNG encoding is done using the libpng library. Depending on the filename, the saved screenshot will be encoded in JPEG or PNG format. ![]() Starting the binary with the -S flag will take a screenshot instead of starting the VNC server. Detection of orientation changes is done using the OpenSTF project's RotationWatcher.apk. When VNC screen rotation/orientation is not enforced, the VNC server will automatically resize its screen to mirror the device's current orientation. On some ZTE devices, the -z flag is necessary for the rotation or orientation to be set correctly. Forcing a 90 degree rotation means that a device rotated at 90 degrees will be displayed upright, while a device rotated at 270 degrees will instead be displayed upside down. If the device is in landscape mode, and portrait orientation is forced, the VNC server will transform the image to display the screen sideways.Īs another example, forcing landscape orientation means that a device rotated at 90 or 270 degrees will be displayed upright by the VNC server. ![]() This can force the VNC viewer to display a screen rotated at 0, 90 or 270 degrees, or in landscape or portrait orientation. It uses libvncserver for VNC server capabilities, and the OpenSTF project's minicap-shared native library as an interface for capturing frames.įorce screen rotation or orientation ( -r, -o) Originally forked from droidVncServer, this project has been rewritten in C++ and currently only supports screen capture (ie. This is an Android VNC server for Android 4.4 to 10.0 (lower Android versions may work, but untested). ![]()
0 Comments
Leave a Reply. |