Skip to content

A CLI program that uses WinRT to get currently playing song and outputs it to the terminal.

License

Notifications You must be signed in to change notification settings

Jyodann/NowPlaying

Repository files navigation

NowPlaying

Introduction

A CLI tool that gets the information provided to SystemMediaTransportControlsSessionManager (SMTC) in WinRT.

Windows uses this to display what is currently playing:

image

The CLI code uses GlobalSystemMediaTransportControlsSessionManager to check the information provided to SystemMediaTransportControlsSessionManager and tells you the title and artist of the currently playing media on your computer.

image

The CLI tool will update when:

  • The Song changes
  • The source changes (i.e. you close Spotify)

Future Plans

Currently I'm still getting the hang of C++ and especially the poorly documented WinRT documentation. This is my attempt to get song info without requiring any external services like Spotify. For now, I would like to focus on:

  • Compling a binary for Windows Users to try
  • Embedding this in Bittify perhaps?
  • Using MacOS's equivalent to SMTC to get music information on Mac Devices
  • Optimizing memory usage (I feel like it is constantly copying a string in the while loop)

About

A CLI program that uses WinRT to get currently playing song and outputs it to the terminal.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages