MCPcopy
hub / github.com/ampproject/amphtml / play

Method play

test/integration/test-video-manager.js:522–530  ·  view source on GitHub ↗

* @override

(unusedIsAutoplay)

Source from the content-addressed store, hash-verified

520 * @override
521 */
522 play(unusedIsAutoplay) {
523 Promise.resolve().then(() => {
524 dispatchCustomEvent(this.element, VideoEvents_Enum.PLAYING);
525 this.timeoutId_ = this.timer_.delay(() => {
526 this.currentTime_ = this.duration_;
527 dispatchCustomEvent(this.element, VideoEvents_Enum.PAUSE);
528 }, this.length_);
529 });
530 }
531
532 /**
533 * @override

Callers 2

Calls 4

dispatchCustomEventFunction · 0.90
resolveMethod · 0.80
delayMethod · 0.80
thenMethod · 0.45

Tested by

no test coverage detected