Skip to content

Commit

Permalink
Add local libmpv-rs
Browse files Browse the repository at this point in the history
  • Loading branch information
sudipghimire533 committed Aug 12, 2023
1 parent 62410fd commit 963bcb4
Show file tree
Hide file tree
Showing 4 changed files with 137 additions and 50 deletions.
133 changes: 106 additions & 27 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions front-end/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ authors = ["Sudip Ghimire <sudipghimire533@gmail.com>"]
[dependencies]
tokio = { version = "1", features = ["full"] }
crossterm = { version = "0.20", features = ["event-stream"] }
tui = { version = "0.16", features = ["crossterm"], default-features = false }
tui = { package = "ratatui", version = "0.22.0", features = ["crossterm", "all-widgets"], default-features = false }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
libmpv = { version = "2.0.1" }
libmpv = { git = "https://github.com/sudipghimire533/libmpv-rs", rev = "18aa79a" }
fetcher = { path = "../fetcher" }
lazy_static = "1.4.0"
config = { path = "../config" }
Expand Down
2 changes: 1 addition & 1 deletion front-end/src/ui/event.rs
Original file line number Diff line number Diff line change
Expand Up @@ -555,7 +555,7 @@ pub async fn event_sender(
let increase_by = match direction {
HeadTo::Next => CONFIG.constants.volume_step,
HeadTo::Prev => CONFIG.constants.volume_step * -1,
HeadTo::Initial => 0
HeadTo::Initial => 0,
};

let res = state.player.change_volume(increase_by);
Expand Down
Loading

0 comments on commit 963bcb4

Please sign in to comment.