mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-04 07:24:59 +02:00
Merge pull request #6456 from EdgarPironti/record_branch
Playback Agents/Master fixes
This commit is contained in:
commit
a7d5ca92ca
1 changed files with 4 additions and 9 deletions
|
@ -52,25 +52,20 @@ function getAction(channel, message, senderID) {
|
||||||
|
|
||||||
if (command.id_key == id || command.id_key == -1) {
|
if (command.id_key == id || command.id_key == -1) {
|
||||||
if (command.action_key === 6) {
|
if (command.action_key === 6) {
|
||||||
clip_url = command.clip_url_key;
|
|
||||||
|
|
||||||
// If the id is -1 (broadcast) and the action is 6, in the url should be the performance file
|
clip_url = command.clip_url_key;
|
||||||
// with all the clips recorded in a session (not just the single clip url).
|
|
||||||
// It has to be computed here in order to retrieve the url for the single agent.
|
|
||||||
// Checking the id we can assign the correct url to the correct agent.
|
|
||||||
|
|
||||||
if (command.id_key == -1) {
|
if (command.id_key == -1) {
|
||||||
Assets.downloadData(clip_url, function (data) {
|
Assets.downloadData(clip_url, function (data) {
|
||||||
var myJSONObject = JSON.parse(data);
|
var myJSONObject = JSON.parse(data);
|
||||||
var hash = myJSONObject.results[id].hashATP;
|
var hash = myJSONObject.avatarClips[id];
|
||||||
});
|
});
|
||||||
|
|
||||||
Assets.downloadData(hash, function (data) {
|
clip_url = hash;
|
||||||
clip_url = JSON.parse(data);
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
action = command.action_key;
|
action = command.action_key;
|
||||||
print("That command was for me!");
|
print("That command was for me!");
|
||||||
print("My clip is: " + clip_url);
|
print("My clip is: " + clip_url);
|
||||||
|
|
Loading…
Reference in a new issue