Konstantin Seiler
873f86bb96
Cancel preload requests to free bandwidth when repeating the same track.
2020-02-07 23:54:09 +11:00
Konstantin Seiler
3f111a9778
Suppress sending loading state to Spotify unless we actually need to load a track.
2020-02-07 21:21:11 +11:00
Konstantin Seiler
18d1181bf5
Clean up some code
...
Ensure the player events are emitted correctly.
Only call the external script on events we want to notify about.
Stop sink when loading to pause.
cargo fmt
2020-02-03 18:58:44 +11:00
Konstantin Seiler
ead794f4fd
Correct notifications when loading the same track again.
2020-02-03 14:31:15 +11:00
Konstantin Seiler
499824a6ba
rust fmt
2020-02-03 11:57:09 +11:00
Konstantin Seiler
981b76bace
Keep the sink open
...
Fix typo
2020-02-03 10:11:27 +11:00
Konstantin Seiler
6fed8d0413
Make preloading work.
2020-02-03 09:15:56 +11:00
Konstantin Seiler
349e182d41
Smarter handling of preloading and loading of tracks that are already loaded.
2020-02-03 09:15:48 +11:00
Konstantin Seiler
8756341201
Remove debug message
2020-02-02 11:12:17 +11:00
Konstantin Seiler
9eef690a22
Some clean up
2020-02-02 11:08:46 +11:00
Konstantin Seiler
5784b4652c
Prepare for gapless play.
...
- change communication between player and spirc to use player events channel.
- enhance player events channel
- have spirc send loading messages to Spotify
- enable preloading of tracks in the player
2020-02-01 08:41:11 +11:00
Sasha Hilton
3672214e31
Update Cargo.lock
2020-01-30 02:41:47 +01:00
Sasha Hilton
6daa2acd0a
Update version numbers to 0.1.1
2020-01-30 02:39:41 +01:00
Sasha Hilton
83140bea88
Merge pull request #427 from kaymes/connection-lost-crash
...
Gracefully handle lost network connections
2020-01-30 02:04:37 +01:00
Konstantin Seiler
37f6e3eb9c
Print error message on connection failure.
2020-01-29 09:51:26 +11:00
Konstantin Seiler
65d1c1bf8e
Proper error handling when connecting to the server.
2020-01-29 09:45:06 +11:00
Sasha Hilton
c9f1914fc8
Run cargo fmt
2020-01-28 19:19:18 +01:00
Sasha Hilton
4c9a8b5cac
Merge pull request #422 from misuzu/subprocess
...
Subprocess audio backend
2020-01-25 01:25:17 +01:00
Sasha Hilton
6f7fd9f398
Merge pull request #426 from kaymes/empty-queue-crash
...
Prevent spirc from crashing when the queue is empty.
2020-01-24 03:05:07 +01:00
Sasha Hilton
e9c3357e41
Run cargo fmt
2020-01-24 02:26:16 +01:00
misuzu
b8617f54a9
Added subprocess audio backend
2020-01-24 02:35:48 +02:00
Sasha Hilton
cdcb919c08
Merge branch 'dev' into connection-lost-crash
2020-01-24 01:02:40 +01:00
Sasha Hilton
01be8e7efa
Merge pull request #423 from marcelbuesing/rust-2018
...
Migrate to rust 2018 edition
2020-01-24 01:00:39 +01:00
Sasha Hilton
94bb4623d2
Correct cargo clean package flags
2020-01-24 00:59:28 +01:00
Sasha Hilton
d599c5cc85
Further reduce cache bloat
2020-01-24 00:27:57 +01:00
Konstantin Seiler
a52092e094
Convert another panic to error handling.
...
Compatibility fix for Rust 1.33.
2020-01-24 10:12:16 +11:00
Konstantin Seiler
0e22678a28
Workaround for Rust 1.33 borrow checker.
2020-01-23 21:10:55 +11:00
Konstantin Seiler
dadab486d2
Don't exit if too many spirc failures.
2020-01-23 19:51:09 +11:00
Konstantin Seiler
f26db01110
Rate-limit automatic re-connection attempts when spirc shuts down.
2020-01-23 19:32:06 +11:00
Konstantin Seiler
17821b26aa
Rename variable to be in line with existing code.
2020-01-23 19:32:00 +11:00
Konstantin Seiler
113bb92c9d
Prevent spirc from crashing when the queue is empty.
2020-01-23 19:26:47 +11:00
Konstantin Seiler
719943aec9
Don't panic if spirc terminates prematurely.
...
Instead attempt to reconnect and wait for new client connections.
2020-01-23 01:24:59 +11:00
Konstantin Seiler
ea1e0925dc
Enable proper shutdown of the channels.
2020-01-23 01:23:34 +11:00
Konstantin Seiler
04b52d7878
Have player handle Mercury errors while loading tracks.
2020-01-23 01:15:30 +11:00
Konstantin Seiler
3fe3849588
Enable Mercury to be shut down and all pending requests being cancelled.
2020-01-23 01:14:43 +11:00
Konstantin Seiler
b6c676ad60
Prevent librespot from panicking if server connection is lost.
2020-01-22 21:55:45 +11:00
Konstantin Seiler
362106df62
Fix error handling for closed channel.
...
fixes #417
2020-01-22 16:58:21 +11:00
marcelbuesing
c9147d31ab
Turn child crates into rust 2018 edition
2020-01-17 20:54:05 +01:00
marcelbuesing
38d82f2dc2
Rerun rustfmt on full codebase
2020-01-17 18:47:30 +01:00
ashthespy
d26590afc5
Update to Rust 2018
...
- Fix deprecated Error::cause warnings and missing dyn
- Reset max_width
- Add rustfmt to Travis
- Run rustfmt on full codebase
with `cargo fmt --all`
- Add rustfmt to Travis
- Complete migration to edition 2018
- Replace try! shorthand
- Use explicit `dyn Trait`
2020-01-17 18:11:52 +01:00
marcelbuesing
be2ad9059a
Migrate to rust 2018 edition
2020-01-17 15:54:42 +01:00
Ash
2a1482c880
Merge pull request #421 from ashthespy/autoplay
...
Don't panic when no autoplay uri is obtained
2020-01-08 13:13:49 +01:00
ashthespy
6c6ba88590
Don't panic when no autoplay uri is obtained
...
For example from Liked Songs (`spotify:user:xxx:collection`)
2020-01-07 12:13:49 +01:00
Sasha Hilton
f610436641
Merge pull request #416 from dbr/patch-1
...
Update readme regarding libspotify deprecation
2020-01-02 00:13:02 +00:00
dbr/Ben
becb314666
Update deprecation link to better summary
2019-12-28 23:06:55 +10:30
dbr/Ben
63a5c4de7f
Update readme regarding libspotify deprecation
2019-12-28 20:33:06 +10:30
Sean McNamara
d30ffcd1c0
Mostly fix play/pause/stop behavior. Pause is latent.
2019-12-25 17:51:22 -05:00
Sean McNamara
664c76b201
Fix playback on track change. Pause/resume is still weird.
2019-12-25 16:36:30 -05:00
Sean McNamara
ed04c049cc
Working proof of concept with up to date gstreamer bindings and Rust 2018.
2019-12-25 12:19:48 -05:00
Sean McNamara
6707389732
Forward port plietar's WIP gstreamer backend.
2019-12-25 06:19:12 -05:00