Edumatic Player integration example

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

Edumatic DEMO environment baseUrl: https://www.edumaticonline.com/edumatic5-demo
Edumatic LIVE environment baseUrl https://www.edumaticonline.com/edumatic5

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 (https://developer.mozilla.org/en-US/docs/Web/API/Window/postMessage). 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.