Commit fc09b3a9 by Kurt Berglund

Update event namings based on edX standard formats

parent 50caddc5
...@@ -8,7 +8,7 @@ function OfficeMixBlock(runtime, element) { ...@@ -8,7 +8,7 @@ function OfficeMixBlock(runtime, element) {
player.on('ready', function () { player.on('ready', function () {
player.getDuration(function (duration) { player.getDuration(function (duration) {
var data = { var data = {
'event_type': 'xblock.officemix.loaded', 'event_type': 'microsoft.office.mix.loaded',
url: mixUrl, url: mixUrl,
duration: duration duration: duration
}; };
...@@ -19,7 +19,7 @@ function OfficeMixBlock(runtime, element) { ...@@ -19,7 +19,7 @@ function OfficeMixBlock(runtime, element) {
player.on('play', function () { player.on('play', function () {
player.getCurrentTime(function (value) { player.getCurrentTime(function (value) {
var data = { var data = {
'event_type': 'xblock.officemix.played', 'event_type': 'microsoft.office.mix.played',
url: mixUrl, url: mixUrl,
time: value time: value
}; };
...@@ -31,7 +31,7 @@ function OfficeMixBlock(runtime, element) { ...@@ -31,7 +31,7 @@ function OfficeMixBlock(runtime, element) {
player.on('pause', function () { player.on('pause', function () {
player.getCurrentTime(function (value) { player.getCurrentTime(function (value) {
var data = { var data = {
'event_type': 'xblock.officemix.paused', 'event_type': 'microsoft.office.mix.paused',
url: mixUrl, url: mixUrl,
time: value time: value
}; };
...@@ -42,7 +42,7 @@ function OfficeMixBlock(runtime, element) { ...@@ -42,7 +42,7 @@ function OfficeMixBlock(runtime, element) {
player.on('ended', function () { player.on('ended', function () {
var data = { var data = {
'event_type': 'xblock.officemix.stopped', 'event_type': 'microsoft.office.mix.stopped',
url: mixUrl url: mixUrl
}; };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment