Giter Club home page Giter Club logo

Comments (58)

ShankarBUS avatar ShankarBUS commented on May 27, 2024 13

I got a happy new for us!

Yeah!!!!!!!!!! Thank you so much @ADeltaX for helping us.

Our delta boi found & successfully reversed the INowPlayingSessionManager.

This new API is 🔥🔥🔥🔥.

It give us the HWND and Process Id of the media source. F*** even a method to activate the source app!

I hope this would also enable us to find and activate the source with high precision (unlike the current guess and pick one method).

I still haven't seen the full potential of it. All I have is just the metadata. But if this turns out successfully, our app would be a robust alternative to the legacy one.

We could get an insight of it within a few days.

from modernflyouts.

ADeltaX avatar ADeltaX commented on May 27, 2024 9

HOW TF DO YOU KNOW IT? 🤯😵

Magic! (You have no idea how many interfaces I damn reversed. This is one of 2 reason why I'm still quiet yet. I want to make a big surprise. The another one is being a university student with many exams lol)

Are only the sessions changed not firing? Are there some other events not firing too (for e.g. playback info changed, timeline properties changed & etc)?

So far I only observed sessions changes not firing.

Can we do some thing to update it in a programmatic way like by using the INowPlayingSessionManager somehow?

The problem of this interface is that is different across Windows 10 versions.

from modernflyouts.

ADeltaX avatar ADeltaX commented on May 27, 2024 5

If Cs/WinRT was stable enough we would use that compiler/marshaller to create a projection of MtcModel -> as you can have support up to 14393. (LockScreen uses this btw)

from modernflyouts.

Samuel12321 avatar Samuel12321 commented on May 27, 2024 5

Microsoft seems to have fixed this on insider builds

from modernflyouts.

ShankarBUS avatar ShankarBUS commented on May 27, 2024 5

It's happening! v0.9 will be released in 2 days or so.

from modernflyouts.

ShankarBUS avatar ShankarBUS commented on May 27, 2024 4

Wee woo wee woo!

Feature update time!

NPSM is in prototyping stage right now.

https://github.com/ADeltaX/NPSMLib

The actual incorporation would happen in a few days.

Stay tuned for more updates 😏.

from modernflyouts.

 avatar commented on May 27, 2024 4

Media sessions are not updating still...... Spotify steering works, but microsoft edge and other apps no :/// But displaying over everything works ;D

Edit: if anyone have same problem, just reset app, and everything works xD

from modernflyouts.

ShankarBUS avatar ShankarBUS commented on May 27, 2024 3

No updates yet 😅. But this is a high priority and will sure be fixed

from modernflyouts.

 avatar commented on May 27, 2024 3

Hmm, I know this issue, in version 20h2 still appears, but the best way to repair it is to uninstall any last windows update (it will work now) and (optionally) install it again 😉 the bug can unfortunately appears again with small chance, can be repaired using the same method (I comment it because of 'community feedback wanted') 😁
And it appears not only in this app, in build-in media control too (I think you know it 😉)

from modernflyouts.

Sepruko avatar Sepruko commented on May 27, 2024 3

Not unless Discord suddenly decides to just randomly support serving more information for media sessions on their own will.

from modernflyouts.

ShankarBUS avatar ShankarBUS commented on May 27, 2024 3

Well @ADeltaX just fixed a few bugs. We expect to release feature with v0.9 within 2 weeks 😄

from modernflyouts.

ADeltaX avatar ADeltaX commented on May 27, 2024 2

The built-in flyout uses the very old INowPlayingSessionManager com interface.

I haven't tested MtcModel (starting from 14393) enough to say if it's broken or not, but at current situation it will NOT work on .NET due to WinRT marshaller being picky to say the least (If the namespace starts with "Windows." the .NET WinRT marshaller will look for the winmd ONLY in "%windir%\system32\winmetadata". Obviously this is an internal one, so not available in that folder. Failing to find it will die.)

from modernflyouts.

prakharb5 avatar prakharb5 commented on May 27, 2024 2

Any news, when it will be fixed?

from modernflyouts.

Samuel12321 avatar Samuel12321 commented on May 27, 2024 2

@ADeltaX are you able to verify if this has been resolved?

from modernflyouts.

Samuel12321 avatar Samuel12321 commented on May 27, 2024 1

Can the community verify this.

from modernflyouts.

prakharb5 avatar prakharb5 commented on May 27, 2024 1

I broke my Windows Update, so can't say... 😅 😂

from modernflyouts.

ShankarBUS avatar ShankarBUS commented on May 27, 2024 1

Isn't that like Discord's fault?

What else can we do?

from modernflyouts.

Sepruko avatar Sepruko commented on May 27, 2024 1

I think we need to file an issue against Discord.

You'll likely be denied immediately. Discord won't accept requests for features like this, development has also slowed down for Discord, until next year.

from modernflyouts.

Sepruko avatar Sepruko commented on May 27, 2024 1

You'll likely be denied immediately. Discord won't accept requests for features like this, development has also slowed down for Discord, until next year.

I can think of a couple reasons to deny this request...

  1. Discord's purpose isn't to serve media outside of itself, it's not a music application or anything of the like.
  2. Any audio it creates that responds to keybinds outside of the app within purpose are ones related to video and voice calls, which are not media sessions.

from modernflyouts.

Parth-Mawai avatar Parth-Mawai commented on May 27, 2024 1

you mean you can't do anything about it, right? ok if you say so

from modernflyouts.

Parth-Mawai avatar Parth-Mawai commented on May 27, 2024 1

i thought maybe the new API could have helped in this.

from modernflyouts.

prakharb5 avatar prakharb5 commented on May 27, 2024 1

To fix that, open the certificate, then install, then choose browse and select trusted people. And install.

Then try installing again. Should work. I just figured out today 😂

from modernflyouts.

KibSquib48 avatar KibSquib48 commented on May 27, 2024 1

because it happens almost every hour?

from modernflyouts.

ShankarBUS avatar ShankarBUS commented on May 27, 2024

Mm okay. 😑

HOW TF DO YOU KNOW IT? 🤯😵

Are only the sessions changed not firing? Are there some other events not firing too (for e.g. playback info changed, timeline properties changed & etc)?

from modernflyouts.

Daksh-T avatar Daksh-T commented on May 27, 2024

Any news of when this will be fixed?

from modernflyouts.

Parth-Mawai avatar Parth-Mawai commented on May 27, 2024

so when can we see the new API into action or is it already released?

from modernflyouts.

prakharb5 avatar prakharb5 commented on May 27, 2024

It's already under development, as far as I know.

You can expect it in the coming first or second release of the app.

from modernflyouts.

Parth-Mawai avatar Parth-Mawai commented on May 27, 2024

@ShankarBUS @Cyberdroid1 would you include a flyout for discord too?

from modernflyouts.

prakharb5 avatar prakharb5 commented on May 27, 2024

I did not understand what you mean. Why would there be a separate flyout for discord?

from modernflyouts.

Parth-Mawai avatar Parth-Mawai commented on May 27, 2024

not seperate, but a flyout similar too the existing ones, just indicate that discord is playing audio

from modernflyouts.

prakharb5 avatar prakharb5 commented on May 27, 2024

That... would be unnecessary work, IMO. I mean, the current flyout works fine, right?

from modernflyouts.

Parth-Mawai avatar Parth-Mawai commented on May 27, 2024

no, it doesn't show up for discord, is it supposed to work?

from modernflyouts.

Sepruko avatar Sepruko commented on May 27, 2024

For me, it does show when Discord is playing audio. This can be seen here:

image

(The #4 is a channel name)

This does seem to have the need of being "provoked" by playing media that is longer than a few seconds, otherwise it will never show.

from modernflyouts.

prakharb5 avatar prakharb5 commented on May 27, 2024

Discord maybe does not fully support GSMTC. Otherwise the flyout should support.

What about the default flyout of windows?

from modernflyouts.

Sepruko avatar Sepruko commented on May 27, 2024

It does, but it doesn't tell you anything other than the channel name (window title MINUS " - Discord").

image

from modernflyouts.

Sepruko avatar Sepruko commented on May 27, 2024

Nothing. Discord doesn't serve any other information I believe.

from modernflyouts.

prakharb5 avatar prakharb5 commented on May 27, 2024

ModernFlyouts atleast tells the app name. Default one doesn't even tell that.

from modernflyouts.

prakharb5 avatar prakharb5 commented on May 27, 2024

I think we need to file an issue against Discord.

from modernflyouts.

Parth-Mawai avatar Parth-Mawai commented on May 27, 2024

@Cyberdroid1 no it doesn't, that's what i'm trying to say

from modernflyouts.

Parth-Mawai avatar Parth-Mawai commented on May 27, 2024

I can't see that kinda flyout
image

from modernflyouts.

prakharb5 avatar prakharb5 commented on May 27, 2024

I guess it is a Windows bug then, if you are not seeing like that.

Try restarting the app.

from modernflyouts.

Parth-Mawai avatar Parth-Mawai commented on May 27, 2024

no change

from modernflyouts.

prakharb5 avatar prakharb5 commented on May 27, 2024

That are some valid points.

Conclusion--
Its all Discord's fault. Nothing that ModernFlyouts can fix.

from modernflyouts.

prakharb5 avatar prakharb5 commented on May 27, 2024

The "magical" moment.

from modernflyouts.

Parth-Mawai avatar Parth-Mawai commented on May 27, 2024

any updates?

from modernflyouts.

iqfareez avatar iqfareez commented on May 27, 2024

Excited to see its coming

from modernflyouts.

Parth-Mawai avatar Parth-Mawai commented on May 27, 2024

@Cyberdroid1 when will v0.9 be released ?

from modernflyouts.

prakharb5 avatar prakharb5 commented on May 27, 2024

It should come soon.
@Samuel12321 any updates?

from modernflyouts.

prakharb5 avatar prakharb5 commented on May 27, 2024

@Parth-Mawai,
v0.9 is out!

You can get the app from the GitHub Repo, or you can wait a few days until it is released in store.

from modernflyouts.

 avatar commented on May 27, 2024

I can't install, it says that app doesn't have needed certificates, even after installing *.cer file ://

from modernflyouts.

Parth-Mawai avatar Parth-Mawai commented on May 27, 2024

I can't install, it says that app doesn't have needed certificates, even after installing *.cer file ://

same here

from modernflyouts.

Parth-Mawai avatar Parth-Mawai commented on May 27, 2024

image

the error : "This app package is not signed with a trusted certificate. Contact your system administrator or the app developer to obtain a new certificate or app package with trusted certificates. The root certificate and all immediate certificates of the signature in the app package must be trusted (0x800B010A)"
@Cyberdroid1

from modernflyouts.

KibSquib48 avatar KibSquib48 commented on May 27, 2024

is it possible to maybe add an option to restart ModernFlyouts from the system tray context menu?

from modernflyouts.

prakharb5 avatar prakharb5 commented on May 27, 2024

There is ability to exit app, and then start it from Start menu.

IMO, adding an option to restart isn't exactly great.

from modernflyouts.

KibSquib48 avatar KibSquib48 commented on May 27, 2024

There is ability to exit app, and then start it from Start menu.

IMO, adding an option to restart isn't exactly great.

true but it's kind of annoying to have to close modernflyouts and open it from the start menu over and over again basically every hour, a button to restart it would still be nice and make it less of a hassle

from modernflyouts.

prakharb5 avatar prakharb5 commented on May 27, 2024

Why do you need to restart the app every hour though?

from modernflyouts.

 avatar commented on May 27, 2024

I encountered this bug today. Kinda a dealbreaker.

from modernflyouts.

dsz-dsz-k avatar dsz-dsz-k commented on May 27, 2024

Sorry for digging up this issue.
Actually I tried to develop my own app using GlobalSystemMediaTransportControlsSessionManager, and debugging brought me to this page.
I installed ModernFlyout, and it seems that the bug is still present in later Windows 10 versions (mine is latest 21H1).
Events like SessionsChanged or CurrentSessionChanged are never fired.
It seems that stock Windows 10 flyout are updated but at a very slow frequency.
Any hint about the issue?

from modernflyouts.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.