This project demonstrates a simple server-client architecture for streaming audio files. The server hosts audio files and streams them to clients upon request. Clients can interact with the audio playback using VLC..
Python 3 - The server and client are implemented in Python.
VLC Media Player - Used for audio playback on the client side.
Ensure you have the following Python libraries installed:
vlc
socket
threading
subprocess
time
os
You can install the required, and not pre-installed, VLC Python library via apt:
apt install python3-vlc
To run the code, you first need to open the server
python3 server.py
To run the client, you need to execute this command:
python3 client.py
├── client.py # Client script
├── main.py # Server script
├── authuser.py # Authentication handler
├── fileHandler.py # File handling utilities
├── files/ # Directory for audio files
└── README.md # This file
- VLC Not Opening: Ensure VLC is correctly installed and accessible via the command line.
- Permission Issues: Check that the files directory and its contents are readable.
- Network Issues: Verify that the server and client are on the same network and that the server's IP address and port are correctly specified in the client script.