Control My Movie
It's fun type mini script on python. Suppose you and your friend are watching a same movie but on different laptops. Your friend Can control your media player. Like, he/she can pause/mute/volume_up/volume_down/forward/rewind .
Supported Media Players
- Pot Player
- KM Player
Installation
- Clone the repo
git clone https://github.com/silenthunter007/ctrl_my_movie.git
- Install requirements
pip install -r requirements.txt
or
Use the package manager pip to install necessary packages.
- python-firebase
- pynput
pip install python-firebase,pynput
Database Setup
You need a central database to pass the controls.
Firebase is handy.
1. Setup a Firebase Realtime Database Just like the structure below.
2. Change both the 'controller' and 'simulator' files as below.
dbase = 'https://database_name.firebaseio.com/' #use your firebase database destination here
Usage
If you want to control
- Run the controller.py in your machine.
- Run the simulator.py in your friend's machine.
If you want to be controlled
- Run the simulator.py in your machine.
- Run the controller.py in your friend's machine.
==> Press Esc Button Anytime to Exit
Contributing
Pull requests are welcome.
Project status
Currently this is working in a simplex method(one way communication). Enthusiasts are welcome to develop it.
Please make sure to update tests as appropriate.