MCPcopy
hub / github.com/processing/p5.js / noLoop

Method noLoop

src/dom/p5.MediaElement.js:354–357  ·  view source on GitHub ↗

* 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

()

Source from the content-addressed store, hash-verified

352 * }
353 */
354 noLoop() {
355 this.elt.removeAttribute('loop');
356 return this;
357 }
358
359 /**
360 * Sets up logic to check that autoplay succeeded.

Callers 6

nFunction · 0.80
PartFunction · 0.80
environment.jsFile · 0.80
structure.jsFile · 0.80
webgpu.jsFile · 0.80
loadingDisplayingFunction · 0.80

Calls 1

removeAttributeMethod · 0.80

Tested by

no test coverage detected