thewizrd / itunes-smtc Goto Github PK
View Code? Open in Web Editor NEWIntegrates iTunes with Windows 10/11 system media controls
License: MIT License
Integrates iTunes with Windows 10/11 system media controls
License: MIT License
I recently tried using your App and it works great so thank you. However, I noticed a bug where the
_iTunesApp
object wasn’t correctly destroyed when closing iTunes. This causes iTunes to display a
Popup that an App is still using the iTunes interface and waits 20 before closing automatically.
Steps to reproduce:
I had a look at the code myself and found this Code in the DisconnectiTunes()
method:
iTunes-SMTC/iTunes.SMTC/SettingsUi.iTunesController.cs
Lines 409 to 423 in d2cb03e
Marshal.FinalReleaseComObject
and GC.Collect();
:
if (_iTunesApp != null)
{
Debug.WriteLine("Releasing iTunes COM object...");
wasAlive = true;
RemoveEvents();
Marshal.FinalReleaseComObject(_iTunesApp);
GC.Collect();
}
_iTunesApp = null;
if (_currentTrack != null)
{
Marshal.FinalReleaseComObject(_currentTrack);
GC.Collect();
}
_currentTrack = null;
You can try the the Fix in my fork here: https://github.com/AD4MANTIS/iTunes-SMTC
The relevant comit is here: AD4MANTIS@a4db419
For me this fix works when I open the settings UI once before playing the first song with iTunes. The UI
doesn’t need to be open when pressing play to work. It’s the same thing when opening iTunes again
after closing it. If I don’t open the settings UI before playing the first song it gives me the message,
otherwise it closes normally.
I'm not sure what causes this, so maybe do you have an idea?
If song switches to one without a media thumbnail (image), the previous songs one is used. In this case it should be blank
Hi @thewizrd, im one of the developers of ModernFlyouts, i came across this project after one of our contributors added it to the list of extensions to get around problems with apps not supporting STMC. Nice project by the way, very useful.
I just thought I would enquire whether you would be interested in a collaboration of some sort to add this functionality to ModernFlyouts, possibly thought adapting this into an extension?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.