## Running the application (Strictly follow the below order to run it successfully):
## Running the application (Strictly follow the below order to run it successfully):
NOTE: Before proceeding make sure that the Laptop/Desktop and the android phone are connected to same Wifi/Hotspot.
NOTE: Before proceeding make sure that the Laptop/Desktop and the android phone are connected to same WiFi/Hotspot.
1. Run the Wireless-X server using the following command:
1. Run the Wireless-X server using the following command:
$ python3 Wireless-X_server.py
$ python3 Wireless-X_server.py
...
@@ -41,7 +52,7 @@
...
@@ -41,7 +52,7 @@
$ ffplay /dev/video20
$ ffplay /dev/video20
#### *Extra (Inorder to remove v42loopback devices, use below command):
### *Extra (Inorder to remove v42loopback devices, use below command):
$ sudo modprobe -r v4l2loopback
$ sudo modprobe -r v4l2loopback
...
@@ -77,8 +88,8 @@
...
@@ -77,8 +88,8 @@
Note: ffplay
Note: ffplay
## Working (TODO)
## Working
The Wireless-X app has two components: a python server running on laptop/PC and a client running on the android app. The user acts as a client where he/she sends the mouse and keyboard actions to be performed. If the user has turned on the camera, the camera frames are also sent to the python server. There are two sockets, one socket manages the mouse and keyboard actions, then the python program uses autopy and pynput libraries to translate these requests into the actual actions. The other socket is responsible for handling the camera frames, the python program uses the pyfakewebcam library to set up a camera virtual device on the laptop/PC and uses the OpenCV library to decode the camera frames coming from the client-side.