MCPcopy Create free account
hub / github.com/ampproject/amphtml / pause

Method pause

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

* @override

()

Source from the content-addressed store, hash-verified

533 * @override
534 */
535 pause() {
536 Promise.resolve().then(() => {
537 dispatchCustomEvent(this.element, VideoEvents_Enum.PAUSE);
538 this.timer_.cancel(this.timeoutId_);
539 });
540 }
541
542 /**
543 * @override

Calls 4

dispatchCustomEventFunction · 0.90
resolveMethod · 0.80
thenMethod · 0.45
cancelMethod · 0.45

Tested by

no test coverage detected