Needs a lot of cleanup. Data has been de-duplicated, and where identical copies existed, one of them has been replaced with a symlink. Some files have been excluded, such as binaries, installers and debug dumps. Some of that may still be present.
22 lines
No EOL
756 B
JavaScript
22 lines
No EOL
756 B
JavaScript
var clip_url = "https://s3-us-west-1.amazonaws.com/hifi-content/chris/dev/recording/avatars/hfr/1.hfr";
|
|
|
|
var PLAYBACK_CHANNEL = "playbackChannel";
|
|
var playFromCurrentLocation = false;
|
|
var useDisplayName = true;
|
|
var useAttachments = true;
|
|
var useAvatarModel = true;
|
|
var loop = true;
|
|
|
|
Recording.loadRecording(clip_url, function (success) {
|
|
Recording.setPlayFromCurrentLocation(playFromCurrentLocation);
|
|
Recording.setPlayerUseDisplayName(useDisplayName);
|
|
Recording.setPlayerUseAttachments(useAttachments);
|
|
Recording.setPlayerUseHeadModel(false);
|
|
Recording.setPlayerLoop(loop);
|
|
Recording.setPlayerUseSkeletonModel(useAvatarModel);
|
|
|
|
Agent.isAvatar = true;
|
|
|
|
Recording.setPlayerTime(0.0);
|
|
Recording.startPlaying();
|
|
}); |