microsoft / cppwinrt

C++/WinRT
MIT License
1.64k stars 238 forks source link

Bug: GlobalSystemMediaTransportControlsSessionManager not updating sessions #1310

Closed m2jean closed 1 year ago

m2jean commented 1 year ago

Version

2.0.230225.1

Summary

On a single GlobalSystemMediaTransportControlsSessionManager instance, CurrentSessionChanged and SessionsChanged event won't fire. GetCurrentSesssion and GetSessions always return the same result even when sessions have been updated.

Calling GlobalSystemMediaTransportControlsSessionManager::RequestAsync will get the latest session info. I had to call it in a loop.

kennykerr commented 1 year ago

This repo is for issues specifically with C++/WinRT itself. For API questions I'd suggest: