* Plays the audio/video repeatedly in a loop. * * @chainable * * @example * let beat; * let isLooping = false; * * function setup() { * createCanvas(100, 100); * * background(200); * * // Create a p5.MediaElement using createAudio(). * beat = createA
()
| 297 | * } |
| 298 | */ |
| 299 | loop() { |
| 300 | this.elt.setAttribute('loop', true); |
| 301 | this.play(); |
| 302 | return this; |
| 303 | } |
| 304 | /** |
| 305 | * Stops the audio/video from playing in a loop. |
| 306 | * |
no test coverage detected