Skip to content

Commit

Permalink
Change the vircadia's url and references
Browse files Browse the repository at this point in the history
Change the vircadia's hardcoded URL and replace it runtime generated one. (No more url to change ever)
Remove the references to Vircadia in the UI, 
replace the "Sandbox" designation by "Domain" / "Domain server"
  • Loading branch information
AleziaKurdis authored Feb 23, 2024
1 parent 27d256b commit 9b8b0aa
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
8 changes: 6 additions & 2 deletions applications/record/html/js/record.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
"use strict";

//
// record.js
//
// Created by David Rowe on 5 Apr 2017.
// Created by David Rowe on April 5th, 2017.
// Copyright 2017 High Fidelity, Inc.
// Copyright 2024, Overte e.V.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
Expand Down Expand Up @@ -289,5 +289,9 @@ function onBodyLoaded() {

elFinishOnOpenLabel = document.getElementById("finish-on-open-label");

var currentPath = window.location.protocol + "//" + window.location.host + window.location.pathname;
var ROOT = currentPath.replace("html/record.html", ""); //<=== Could be useful
document.getElementById("aCscriptUrl").value = ROOT + "playRecordingAC.js";

signalBodyLoaded();
}
11 changes: 6 additions & 5 deletions applications/record/html/record.html
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
<!--
// record.html
//
// Created by David Rowe on 5 Apr 2017.
// Created by David Rowe on April 5th, 2017.
// Copyright 2017 High Fidelity, Inc.
// Copyright 2020 Vircadia contributors.
// Copyright 2024, Overte e.V.
//
// Distributed under the Apache License, Version 2.0.
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
Expand Down Expand Up @@ -38,13 +39,13 @@
<tbody id="instructions" class="hidden">
<tr>
<td colspan="2">
<p>This app lets you record and play back multiple instances of your avatar in your Sandbox.</p>
<p>This app lets you record and play back multiple instances of your avatar in your domain.</p>
<h1>Setup Instructions</h1>
<p>In your sandbox domain:</p>
<p>In your domain server:</p>
<ul>
<li>Right-click the Vircadia Sandbox icon in your system tray and click &ldquo;Settings&rdquo;.</li>
<li>Right-click the domain server icon in your system tray and click &ldquo;Settings&rdquo;.</li>
<li>In the &ldquo;Scripts&rdquo; section add a new row and paste in this script URL:<br />
<input type="text" value="https://cdn.vircadia.com/community-apps/applications/record/playRecordingAC.js" readonly />
<input type="text" id= "aCscriptUrl" value="" readonly />
</li>
<li>Set the number of recordings you&rsquo;d like to run at a given time in the &ldquo;Instances&rdquo; slot.</li>
<li>Click &ldquo;Save and restart&rdquo;.</li>
Expand Down

0 comments on commit 9b8b0aa

Please sign in to comment.