MCPcopy
hub / github.com/KilledByAPixel/LittleJS / play

Method play

plugins/uiSystem.js:1454–1459  ·  view source on GitHub ↗

Play or resume the video * @return {Promise} Promise that resolves when playback starts

()

Source from the content-addressed store, hash-verified

1452 /** Play or resume the video
1453 * @return {Promise} Promise that resolves when playback starts */
1454 async play()
1455 {
1456 // try to play the video, catch any errors (autoplay may be blocked)
1457 try { await this.video.play(); }
1458 catch(e) {}
1459 }
1460
1461 /** Pause the video */
1462 pause() { this.video.pause(); }

Callers 6

constructorMethod · 0.95
playMusicMethod · 0.45
uiUpdateMethod · 0.45
updateMethod · 0.45
clickMethod · 0.45
stopEditingMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected