fn stop_action(&mut self) {
        if !self.stop {
            self.stop = true;
            self.play = false;

            if self.player.is_some() {
                self.player.as_ref().unwrap().stop_stream();
            }
        }
    }
/// Stop the audio after clicking on button
Stop the audio after clicking on button
Stop the audio after clicking on button
fn stop_action(&mut self) {
        if !self.stop {
            self.stop = true;
            self.play = false;
            if self.player.is_some() {
                self.player.as_ref().unwrap().stop_stream();
            }
        }
    }
fn stop_action ( & mut self ) { if ! self . stop { self . stop = true ; self . play = false ; if self . player . is_some ( ) { self . player . as_ref ( ) . unwrap ( ) . stop_stream ( ) ; } } }
Stop the audio after clicking on button
Stop the audio after clicking on button
&mut self
&mut self