|
|
|
@ -24,8 +24,7 @@ impl eframe::App for App {
|
|
|
|
|
ui.label("Made by ya boi, lza_menace");
|
|
|
|
|
ui.hyperlink("https://lzahq.tech");
|
|
|
|
|
|
|
|
|
|
ui.separator();
|
|
|
|
|
ui.label(format!("Now Playing: "));
|
|
|
|
|
ui.separator();
|
|
|
|
|
ui.horizontal(|ui| {
|
|
|
|
|
if ui.button("▶").clicked() {
|
|
|
|
|
// If stream thread is done, start again
|
|
|
|
@ -38,16 +37,20 @@ impl eframe::App for App {
|
|
|
|
|
let _ = &self.player.sink.append(source);
|
|
|
|
|
}
|
|
|
|
|
let _ = &self.player.sink.play();
|
|
|
|
|
self.player.playing = true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if ui.button("■").clicked() {
|
|
|
|
|
let _ = &self.player.sink.pause();
|
|
|
|
|
self.player.playing = false;
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
ui.add(egui::Slider::new(&mut self.player.volume, 0.0..=100.0).text("Volume"));
|
|
|
|
|
self.player.sink.set_volume(self.player.volume / 100.0);
|
|
|
|
|
|
|
|
|
|
ui.label(format!("{:?}", self.player.get_song_meta()));
|
|
|
|
|
if self.player.playing {
|
|
|
|
|
ui.label(format!("Now Playing: {:?}", self.player.get_song_meta()));
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// ui.separator();
|
|
|
|
|
// ui.heading("Tor");
|
|
|
|
|