Maximum audio playbacks Posted bys.giannino October 2, 2023 PennController for IBEX › Forums › Support › Maximum audio playbacks Tagged: audio, number of reproductions This topic has 1 reply, 2 voices, and was last updated 3 years ago by Jeremy. Viewing 2 posts - 1 through 2 (of 2 total) Author Posts October 2, 2023 at 10:11 am #10880 s.gianninoParticipant After a maximum of 3 clicks on the “play” button of an audio element, I’d want the audio element either to hide or to be disabled. Is it possible? Best, Sal October 26, 2023 at 11:11 am #10920 JeremyKeymaster Hello, Use a Var element to keep track of how many times the Audio element was played: newVar("nplayed", 0) , newAudio("audio", "file.wav") .callback( getVar("nplayed").set(v=>v+1) .test.is(3).success( getAudio("audio").remove() ) ) .print() , newButton("Next").print().wait() Jeremy Author Posts Viewing 2 posts - 1 through 2 (of 2 total) You must be logged in to reply to this topic. Log In Username: Password: Keep me signed in Log In