mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-25 17:14:59 +02:00
pop up a prompt with url
This commit is contained in:
parent
7069f7d6ab
commit
a1053ee5a0
2 changed files with 3 additions and 5 deletions
|
@ -82,12 +82,12 @@
|
|||
print("RECORDING ENDED");
|
||||
Recording.stopRecording();
|
||||
isAvatarRecording = false;
|
||||
Recording.saveRecordingToAsset(getClipUrl); //save the clip to the asset and link a callback to get its url
|
||||
|
||||
var recordingFile = Window.save("Save recording to file", "./groupRecording", "Recordings (*.hfr)");
|
||||
if (!(recordingFile === "null" || recordingFile === null || recordingFile === "")) {
|
||||
Recording.saveRecording(recordingFile); //save the clip locally
|
||||
}
|
||||
Recording.saveRecordingToAsset(getClipUrl); //save the clip to the asset and link a callback to get its url
|
||||
}
|
||||
},
|
||||
|
||||
|
|
|
@ -32,7 +32,6 @@ var TIMEOUT = 20;
|
|||
var toolBar = null;
|
||||
var recordIcon;
|
||||
var isRecording = false;
|
||||
var avatarClips = [];
|
||||
var performanceJSON = { "avatarClips" : [] };
|
||||
var responsesExpected = 0;
|
||||
var waitingForPerformanceFile = true;
|
||||
|
@ -109,7 +108,6 @@ function update(deltaTime) {
|
|||
responsesExpected = 0;
|
||||
totalWaitingTime = 0;
|
||||
Script.update.disconnect(update);
|
||||
avatarClips = [];
|
||||
performanceJSON = { "avatarClips" : [] };
|
||||
}
|
||||
}
|
||||
|
@ -122,8 +120,8 @@ function uploadFinished(url){
|
|||
Assets.downloadData(url, function (data) {
|
||||
printPerformanceJSON(JSON.parse(data));
|
||||
});
|
||||
//need to print somehow the url here //this way the master can copy the url
|
||||
//Window.prompt(url);
|
||||
//need to print somehow the url here this way the master can copy the url
|
||||
Window.prompt("Performance file url: ", url);
|
||||
}
|
||||
|
||||
function printPerformanceJSON(obj) {
|
||||
|
|
Loading…
Reference in a new issue