Development

Phantom-Player is coded in Python, so it is actually pretty easy to develop. It is only necessary to install VLC, GTK, a few Python dependencies, and it will run out of the box. Its source code can be found in GitHub.

How to set a Dev Environment

To start developing Phantom Player, you need to download the master branch, and then follow the instructions according your OS/Distribution.

GNU-Linux

  1. Install the dependencies:
    • Debian / Ubuntu

      apt-get install libgtk-3-0 python3 python3-gi-cairo python3-pil python3-magic python3-send2trash python3-vlc
      Note: python3-vlc must be >= 3.0.2, so currently it is not possible to use the software on Debian bookworm.
    • ArchLinux

      pacman -S gtk3 python python-cairo python-pillow python-magic python-send2trash
      and python-vlc from the AUR.

  2. Run main.py

Windows

  1. Install MSYS2.
  2. Install the dependencies from the MSYS2 console:
    pacman -S \
        mingw-w64-ucrt-x86_64-gtk3 \
        mingw-w64-ucrt-x86_64-python \
        mingw-w64-ucrt-x86_64-python-pip \
        mingw-w64-ucrt-x86_64-python-gobject \
        mingw-w64-ucrt-x86_64-python-pillow \
        mingw-w64-ucrt-x86_64-file \ 
        mingw-w64-ucrt-x86_64-python-send2trash \
        

    python -m pip install python-magic python-vlc

  3. Install Vlc x64 under C:\Program Files\VideoLAN
  4. Run main.py with Python of the MSYS2 UCRT directory.

Mac

To be tested.