librespot icon indicating copy to clipboard operation
librespot copied to clipboard

Play example needs to be updated

Open AramZS opened this issue 1 year ago • 2 comments

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?

AramZS avatar Oct 30 '23 00:10 AramZS

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

eladyn avatar Nov 11 '23 18:11 eladyn

@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.

gillesB avatar Dec 26 '23 15:12 gillesB