-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Publish win-gsmtc to crates.io? #291
Comments
Yea, I can do that. I'll add some documentation. Keep in mind that it currently depends on let mut rx = SessionManager::new().await?;
while let Some(evt) = rx.recv().await {
match evt {
ManagerEvent::SessionCreated { mut rx, source, .. } => {
// Sessions have their own stream.
tokio::spawn(async move {
while let Some(evt) = rx.recv().await {
match evt {
SessionUpdateEvent::Model(model) => {
dbg!((&source, &model));
}
SessionUpdateEvent::Media(model, image) => {
dbg!((&source, &model, &image));
}
}
}
});
}
}
} There are some design decisions that were made specifically for this project - e.g. |
Published as |
Hey, thanks for this! I've cobbled together a toy now playing widget in Tauri using your library: https://github.com/gyng/np-widget/blob/bfd3163d2c769bce2d4a19ec7098c0a970b82f16/np/src/main.rs. |
I'm toying with GlobalSystemMediaTransportControlsSessionManager and I see you've already put in a bunch of work into getting it usable.
Are there plans to publish it to crates.io as a standalone crate? It seems fairly complete from a quick scan.
The text was updated successfully, but these errors were encountered: