audio-band
audio-band copied to clipboard
[WIP] Add windows 10 audio source
Summary
This audio source would use the information from apps integrated with the system media transport controls.
Checklist
- [ ] Tests passed
- [ ] Changes validated (manually or automated)
- [ ] Closes / Fixes #212 (if applicable)
Additional details / comments
The main api is the GlobalSystemMediaTransportControlsSessionManager class which allows access to get access to all current sessions. We can use it to get an active current session which we can then use to query for playback information. Sessions also provide events when information changes which makes the implementation even easier.
Current testing with it exposes some issues. Applications like Spotify integrate with SMTC but don't report information like track length and track progress. There are also issues with events randomly deciding to stop working. There needs to be more investigation into these issues.
Manual test steps (if applicable)
Very cool ! Please respond to my comment when it is done so that I can use Groove music with it !
@GlitchedCod I added it to my fork The timeline doesn't work yet though but Ill try to fix it