mirror of
https://github.com/librespot-org/librespot.git
synced 2026-04-27 00:05:55 +03:00
[GH-ISSUE #104] read from STDIN while playing a track #92
Labels
No labels
A-Alsa
SpotifyAPI
Tokio 1.0
audio
bug
can't reproduce
compilation
dependencies
duplicate
enhancement
good first issue
help wanted
high priority
imported
imported
invalid
new api
pull-request
question
reverse engineering
wiki
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/librespot#92
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @sashahilton00 on GitHub (Jan 29, 2018).
Original GitHub issue: https://github.com/librespot-org/librespot/issues/104
Monday Jan 22, 2018 at 21:28 GMT
Originally opened as https://github.com/plietar/librespot/issues/274
I am trying to adapt the play.rs example to make it able to be controlled via STDIN.
As my experience with Rust is very minimal i am struggling with handling non-blocking IO.
My code is as follows:
How can we interrupt the execution of `core.run()?
I have been reading on
core::handleandcore::remotebut since I am used to node.js I am feeling a bit lost here ... ;-)Can someone point me in the right direction?
@ComlOnline commented on GitHub (Jan 29, 2018):
Hey @wijnanb, Please see #105 for more information on controlling from the command line. I don't think that this is something that we would be wanting for librespot and it's not meant to be controlled directly.