[GH-ISSUE #1215] Play example needs to be updated #559

Closed
opened 2026-02-27 19:31:17 +03:00 by kerem · 3 comments
Owner

Originally created by @AramZS on GitHub (Oct 30, 2023).
Original GitHub issue: https://github.com/librespot-org/librespot/issues/1215

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?

Originally created by @AramZS on GitHub (Oct 30, 2023). Original GitHub issue: https://github.com/librespot-org/librespot/issues/1215 **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`?
kerem 2026-02-27 19:31:17 +03:00
Author
Owner

@eladyn commented on GitHub (Nov 11, 2023):

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

<!-- gh-comment-id:1806882359 --> @eladyn commented on GitHub (Nov 11, 2023): At least for me, compiling and running the example is working fine. What isn't working in your case?
Author
Owner

@gillesB commented on GitHub (Dec 26, 2023):

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

<!-- gh-comment-id:1869624368 --> @gillesB commented on GitHub (Dec 26, 2023): @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.
Author
Owner

@roderickvd commented on GitHub (Sep 16, 2024):

All examples up to date now, right?

<!-- gh-comment-id:2353561157 --> @roderickvd commented on GitHub (Sep 16, 2024): All examples up to date now, right?
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/librespot#559
No description provided.