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

Function getVideoJs

src/video-iframe-integration.js:60–65  ·  view source on GitHub ↗
(win, opt_initializer)

Source from the content-addressed store, hash-verified

58 * @visibleForTesting
59 */
60export function getVideoJs(win, opt_initializer) {
61 return userAssert(
62 opt_initializer || /** @type {function()} */ (win.videojs),
63 'Video.JS not imported or initializer undefined.'
64 );
65}
66
67/** @visibleForTesting */
68export class AmpVideoIntegration {

Callers 2

listenToVideoJs_Method · 0.85

Calls 1

userAssertFunction · 0.70

Tested by

no test coverage detected