"partnersList": false /* Show the number of partners on the popup/middle banner */
});
+
+function onLoadMedia(mediaId, username) {
+ // send a request when user load a seminar
+ json([mediaId, username], 'teleforma.media_load', function () { return null; });
+}
+
+function onUnloadMedia(mediaId, username) {
+ try {
+ var params = JSON.stringify({ "id": "jsonrpc", "params": [mediaId, username], "method": "teleforma.media_unload", "jsonrpc": "1.0" })
+ navigator.sendBeacon("/json/", params);
+ }
+ catch {
+ // compatibility with old navigators
+ json_sync([mediaId, username], 'teleforma.media_unload', function () { return null; });
+ }
+}
\ No newline at end of file