https://github.com/shloksonkusare/mediamaster
MediaMaster Control is a project that allows users to manage media playback, including images and videos, through a web server. It utilizes Python and PowerShell scripts to control the playback of media files on a local machine using VLC Media Player.
https://github.com/shloksonkusare/mediamaster
http-server powershell python3 webserver
Last synced: 2 months ago
JSON representation
MediaMaster Control is a project that allows users to manage media playback, including images and videos, through a web server. It utilizes Python and PowerShell scripts to control the playback of media files on a local machine using VLC Media Player.
- Host: GitHub
- URL: https://github.com/shloksonkusare/mediamaster
- Owner: shloksonkusare
- Created: 2024-07-31T15:54:37.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-07-31T16:31:39.000Z (almost 2 years ago)
- Last Synced: 2025-01-29T11:11:15.590Z (over 1 year ago)
- Topics: http-server, powershell, python3, webserver
- Language: Python
- Homepage:
- Size: 3.91 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# MediaMaster Control
## Overview
MediaMaster Control is a project that allows users to manage media playback, including images and videos, through a web server. It utilizes Python and PowerShell scripts to control the playback of media files on a local machine using VLC Media Player.
## Features
- **Run Videos**: Play the videos on the VLC Media Player with the options of fullscreen and looping.
- **Display Images**: Show images in fullscreen mode in VLC Media Player.
- **Stop Media**: Stop all the media running playback and all associated processes.
- **Stop Python processes**: Stop all the python processes with a single command.
- **System Shutdown**: Initiate system shutdown through the web interface.
## Technologies Used
1. **Python**: For the web server and handling the HTTP requests.
2. **PowerShell**: For executing the media playback commands and controlling the system.
3. **VLC Media Player**: For playing video or image files.
4. **HTTP Server**: to accept requests and manage media playback.
## Installation
### Prerequisites
- **Python**: Ensure Python is installed in your machine.
- **VLC Media Player**.
- **PowerShell**.
## Set up Scripts:
- **start.bat**: Initializes the python program, this file is helpful when we have to execute the python program during certain events like Power ON, etc.
- **run_hidden.vbs**: This file ensures that the start.bat file should be executed in the background, without opening the terminal.
- **play_video.ps1**: Script to play videos in fullscreen and in looping manner.
- **image.ps1**: Script to display images in fullscreen and in looping manner.
- **stop.ps1**: Script to stop the execution of current video or image on the system.
- **abort.ps1**: Script to stop the execution of the python programs in the system.
- **shutdown.ps1**: Script to shut down the system forcefully.
## Usage
### Starting the Server
To start the server, execute the python file in the command prompt.
```python server.py```
The server will start and listen for requests on the local IP address at port _8080_.
### Sending Requests
1. Run a Video:
```http://:8080/?action=run&path=C:\path\to\video.mp4```
2. Display an Image:
```http://:8080/?action=run&path=C:\path\to\image.jpg```
3. Execute a PowerShell Script:
```http://:8080/?action=run&path=C:\path\to\script.ps1```
## Troubleshooting
**Execution Policy:** If you encounter execution policy errors when running PowerShell scripts, you can bypass the policy temporarily using:
```Set-ExecutionPolicy Bypass```