Answer the question
In order to leave comments, you need to log in
How to stop an AudioPlayer that is in another class?
Good afternoon!
AudioPlayer playback is turned on in the fourth class, then I return to the second one, the audio recording also plays, it is necessary to disable ( Stop()
) the playback of the audio recording when the button in the second class is pressed.
The procedure itself is clear as day (at least it seems to me). I do the import of the fourth class, then through ЧетвертыйКласс.stop();
the method of stopping the audio recording from the fourth class, BUT an error pops up about
"Non-static method 'stop()' cannot be referenced from a static contexе"
static
?
Answer the question
In order to leave comments, you need to log in
"in the fourth grade, in the second"
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question