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

Function sendMessage

3p/viqeoplayer.js:59–67  ·  view source on GitHub ↗
(eventName, value = null)

Source from the content-addressed store, hash-verified

57 }
58
59 const sendMessage = (eventName, value = null) => {
60 const {parent} = global;
61 const message = /** @type {JsonObject} */ ({
62 source: 'ViqeoPlayer',
63 action: eventName,
64 value,
65 });
66 parent./*OK*/ postMessage(message, '*');
67 };
68
69 /**
70 * Parse events data for viqeo

Callers 2

viqeoPlayerInitLoadedFunction · 0.70
subscribeFunction · 0.70

Calls 1

postMessageMethod · 0.45

Tested by

no test coverage detected