mirror of
https://github.com/librespot-org/librespot.git
synced 2024-12-18 17:11:53 +00:00
fixed example play.rs initalizing player
This commit is contained in:
parent
03de235d2f
commit
d62b72f24d
1 changed files with 1 additions and 1 deletions
|
@ -36,7 +36,7 @@ fn main() {
|
||||||
let session = core.run(Session::connect(session_config, credentials, None, handle))
|
let session = core.run(Session::connect(session_config, credentials, None, handle))
|
||||||
.unwrap();
|
.unwrap();
|
||||||
|
|
||||||
let player = Player::new(player_config, session.clone(), None, move || (backend)(None));
|
let (player,_)= Player::new(player_config, session.clone(), None, move || (backend)(None));
|
||||||
|
|
||||||
println!("Playing...");
|
println!("Playing...");
|
||||||
core.run(player.load(track, true, 0)).unwrap();
|
core.run(player.load(track, true, 0)).unwrap();
|
||||||
|
|
Loading…
Reference in a new issue