Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Introduction:

Player integration in sunbird-portal data exchange and telemetry log using window.postMessage() and window.addEventListener()

Problem statement:

As per the web standards, the communication between iframe and window should be done via post messages.

...

For Listening event: window.addEventListener("message", (event) => { }, false);

Dispatch events list from portal to player:

Event name/Signature

Description

Data(Sender)

renderer:preview:initialize

Initialize player and player its self start initializePreview()

Player Config

Listener events list from player to portal:

Event name/Signature

Description

Data(Receiver)

renderer:question:submitscore

For Logging assessment ASSESS Events

Assess event object for Score

renderer:telemetry:event

Where we can log START, END, IMPRESSION, and all telemetry events

Telemetry object

...