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

Method constructor

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

@param {!AmpElement} element

(element)

Source from the content-addressed store, hash-verified

460 return class FakeVideoPlayer extends win.AMP.BaseElement {
461 /** @param {!AmpElement} element */
462 constructor(element) {
463 super(element);
464
465 /** @private @const */
466 this.timer_ = Services.timerFor(this.win);
467
468 /** @private @const */
469 this.length_ = 10000;
470
471 /** @private @const */
472 this.duration_ = 10;
473
474 /** @private */
475 this.currentTime_ = 0;
476
477 /** @private */
478 this.timeoutId_ = null;
479 }
480
481 /** @override */
482 isLayoutSupported(layout) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected