librespot-org / librespot

Open Source Spotify client library
MIT License
4.79k stars 598 forks source link

Play example needs to be updated #1215

Closed AramZS closed 2 weeks ago

AramZS commented 11 months ago

Describe the bug The example at:

https://github.com/librespot-org/librespot/blob/dev/examples/play.rs

No longer reflects the current state of the library and should be updated. Specifically I think Session::new no longer works and needs to be replaced with Session::connect?

eladyn commented 10 months ago

At least for me, compiling and running the example is working fine. What isn't working in your case?

gillesB commented 9 months ago

@AramZS I was also confused by this (partly because I am new to Rust). But actually Session::new is the newer function which was introduced in the current development cycle. In the latest release 0.4.2 this function does not exist yet.

roderickvd commented 2 weeks ago

All examples up to date now, right?