mirror of
https://github.com/overte-org/overte.git
synced 2025-04-18 18:37:00 +02:00
Log user activity events in record and playback scripts
This commit is contained in:
parent
4c30c0d722
commit
79346673ed
2 changed files with 7 additions and 0 deletions
|
@ -313,6 +313,8 @@
|
|||
|
||||
Recording.setPlayerTime(0.0);
|
||||
Recording.startPlaying();
|
||||
|
||||
UserActivityLogger.logAction("playRecordingAC_play_recording");
|
||||
} else {
|
||||
log("Failed to load recording " + recording);
|
||||
autoPlayTimer = Script.setTimeout(autoPlay, AUTOPLAY_ERROR_INTERVAL); // Try again later.
|
||||
|
@ -415,6 +417,8 @@
|
|||
|
||||
Player.autoPlay();
|
||||
sendHeartbeat();
|
||||
|
||||
UserActivityLogger.logAction("playRecordingAC_script_load");
|
||||
}
|
||||
|
||||
function tearDown() {
|
||||
|
|
|
@ -178,6 +178,7 @@
|
|||
|
||||
recordingState = IDLE;
|
||||
log("Finish recording");
|
||||
UserActivityLogger.logAction("record_finish_recording");
|
||||
playSound(finishRecordingSound);
|
||||
Recording.stopRecording();
|
||||
RecordingIndicator.hide();
|
||||
|
@ -496,6 +497,7 @@
|
|||
value: Player.numberOfPlayers()
|
||||
}));
|
||||
updateRecordingStatus(!Recorder.isIdle());
|
||||
UserActivityLogger.logAction("record_open_dialog");
|
||||
break;
|
||||
case STOP_PLAYING_RECORDING_ACTION:
|
||||
// Stop the specified player.
|
||||
|
@ -506,6 +508,7 @@
|
|||
recording = Window.browseAssets("Select Recording to Play", "recordings", "*.hfr");
|
||||
if (recording) {
|
||||
log("Load recording " + recording);
|
||||
UserActivityLogger.logAction("record_load_recording");
|
||||
Player.playRecording("atp:" + recording, MyAvatar.position, MyAvatar.orientation);
|
||||
}
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue