-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add hook script support for playback and connection events
- Loading branch information
1 parent
a0630d6
commit 8ce6374
Showing
13 changed files
with
280 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,18 @@ | ||
use crate::track::TrackId; | ||
|
||
#[derive(Clone, Debug)] | ||
/// Events that can be emitted by the Deezer Connect player or remote. | ||
#[derive(Copy, Clone, Debug, PartialEq, Eq, Hash)] | ||
pub enum Event { | ||
Play(TrackId), | ||
// TODO - proposals: | ||
// QueueChanged(Queue), | ||
// PlayingChanged(bool), | ||
// ShuffleChanged(bool), | ||
// RepeatModeChanged(RepeatMode), | ||
// VolumeChanged(Percentage), | ||
// ProgressChanged(Percentage), | ||
/// Event emitted when the player has started playing a track. | ||
Play, | ||
|
||
/// Event emitted when the player has paused a track. | ||
Pause, | ||
|
||
/// Event emitted when the player has changed the track. | ||
TrackChanged, | ||
|
||
/// Event emitted when a remote control has connected. | ||
Connected, | ||
|
||
/// Event emitted when a remote control has disconnected. | ||
Disconnected, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.