* Stops the audio/video from playing in a loop. * * The media will stop when it finishes playing. * * @chainable * * @example * let beat; * let isPlaying = false; * * function setup() { * createCanvas(100, 100); * * background(200); * * // Create a
()
| 352 | * } |
| 353 | */ |
| 354 | noLoop() { |
| 355 | this.elt.removeAttribute('loop'); |
| 356 | return this; |
| 357 | } |
| 358 | |
| 359 | /** |
| 360 | * Sets up logic to check that autoplay succeeded. |
no test coverage detected