This project provides a simple API to retrieve information about the currently playing media on a Windows system. It uses ASP.NET Core to create a local web server that serves media information, including title, artist, and thumbnail. The project also includes a static web page for displaying the media information.
- Retrieves current media information from Windows Media Transport Controls
- Provides a JSON API endpoint for easy integration
- Includes thumbnail data as base64-encoded string
- Runs as a local web server on port 5000
- Includes a static web page for displaying media information
- Windows 10 or later
- .NET 8.0 or later
- Go to release page
- Download
MediaWidget.zip - Extract zip file in a new folder
- Run
MediaWidget.exe
git clone https://github.com/Maks0u/MediaWidget.git
cd MediaWidget
dotnet build
dotnet run
- Install and run the application
- The server will start on
http://localhost:5000 - Access the API endpoint at
http://localhost:5000/data - In a web browser, access the static web page at
http://localhost:5000orhttp://localhost:5000/index.html
Returns JSON data about the currently playing media.
Example response:
{
"title": "Song Title",
"artist": "Artist Name",
"thumbnail": {
"base64": "base64encodedstring",
"mimeType": "image/jpeg"
}
}