mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 12:08:54 +02:00
Merge pull request #10480 from ctrlaltdavid/21360
Add domain to record script user activity logging
This commit is contained in:
commit
b759a148f3
1 changed files with 10 additions and 4 deletions
|
@ -37,6 +37,12 @@
|
||||||
Window.alert(message);
|
Window.alert(message);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function logDetails() {
|
||||||
|
return {
|
||||||
|
current_domain: location.placename
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
RecordingIndicator = (function () {
|
RecordingIndicator = (function () {
|
||||||
// Displays "recording" overlay.
|
// Displays "recording" overlay.
|
||||||
|
|
||||||
|
@ -181,7 +187,7 @@
|
||||||
|
|
||||||
recordingState = IDLE;
|
recordingState = IDLE;
|
||||||
log("Finish recording");
|
log("Finish recording");
|
||||||
UserActivityLogger.logAction("record_finish_recording");
|
UserActivityLogger.logAction("record_finish_recording", logDetails());
|
||||||
playSound(finishRecordingSound);
|
playSound(finishRecordingSound);
|
||||||
Recording.stopRecording();
|
Recording.stopRecording();
|
||||||
RecordingIndicator.hide();
|
RecordingIndicator.hide();
|
||||||
|
@ -519,7 +525,7 @@
|
||||||
value: Player.numberOfPlayers()
|
value: Player.numberOfPlayers()
|
||||||
}));
|
}));
|
||||||
updateRecordingStatus(!Recorder.isIdle());
|
updateRecordingStatus(!Recorder.isIdle());
|
||||||
UserActivityLogger.logAction("record_open_dialog");
|
UserActivityLogger.logAction("record_open_dialog", logDetails());
|
||||||
break;
|
break;
|
||||||
case STOP_PLAYING_RECORDING_ACTION:
|
case STOP_PLAYING_RECORDING_ACTION:
|
||||||
// Stop the specified player.
|
// Stop the specified player.
|
||||||
|
@ -530,7 +536,7 @@
|
||||||
recording = Window.browseAssets("Select Recording to Play", "recordings", "*.hfr");
|
recording = Window.browseAssets("Select Recording to Play", "recordings", "*.hfr");
|
||||||
if (recording) {
|
if (recording) {
|
||||||
log("Load recording " + recording);
|
log("Load recording " + recording);
|
||||||
UserActivityLogger.logAction("record_load_recording");
|
UserActivityLogger.logAction("record_load_recording", logDetails());
|
||||||
Player.playRecording("atp:" + recording, MyAvatar.position, MyAvatar.orientation);
|
Player.playRecording("atp:" + recording, MyAvatar.position, MyAvatar.orientation);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
@ -660,7 +666,7 @@
|
||||||
isConnected = Window.location.isConnected;
|
isConnected = Window.location.isConnected;
|
||||||
Script.update.connect(onUpdate);
|
Script.update.connect(onUpdate);
|
||||||
|
|
||||||
UserActivityLogger.logAction("record_run_script");
|
UserActivityLogger.logAction("record_run_script", logDetails());
|
||||||
}
|
}
|
||||||
|
|
||||||
function tearDown() {
|
function tearDown() {
|
||||||
|
|
Loading…
Reference in a new issue