Edumatic Player integration example

To start the player with a sessionAccessCode navigate to the following url: [baseUrl]?sessionAccessCode=[SessionAccessCode].

Edumatic DEMO environment baseUrl:
Edumatic LIVE environment baseUrl

When the player is started, a message (“playerStarted”) is sent to the parent, the top parent and the owner of the player-window. In analogy, a message ("playerFinished") is sent when the player finishes. This is done by the Window.postMessage function ( You can listen to this event to using window.addEventListener("message", callback), where callback is your own implementation.

In this example, the player will start in a popup (separate tab). After finishing the session, an alert will be shown on this page that the session has been ended.