Skip to content

[WIP] Add windows 10 audio source#216

Draft
dsafa wants to merge 1 commit intomasterfrom
feature/win-10-audiosource
Draft

[WIP] Add windows 10 audio source#216
dsafa wants to merge 1 commit intomasterfrom
feature/win-10-audiosource

Conversation

@dsafa
Copy link
Copy Markdown
Owner

@dsafa dsafa commented Jul 17, 2019

Summary

This audio source would use the information from apps integrated with the system media transport controls.

Checklist

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)

@GlitchedCod
Copy link
Copy Markdown

Very cool ! Please respond to my comment when it is done so that I can use Groove music with it !

@svr333
Copy link
Copy Markdown

svr333 commented Jun 24, 2021

@GlitchedCod I added it to my fork
The timeline doesn't work yet though but Ill try to fix it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add audio source for windows 10 media transport controls

4 participants