Skip to content

maurisac/progettoReSiD

Repository files navigation

Audio Streaming Server-Client Project with VLC

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..

Requirements

Software Dependencies

Python 3 - The server and client are implemented in Python.
VLC Media Player - Used for audio playback on the client side.

Python Libraries

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

Running the code

To run the code, you first need to open the server

Run the server

python3 server.py

Run the client(s)

To run the client, you need to execute this command:

python3 client.py

Project Structure

├── 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

Troubleshooting

  • 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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages