This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
function enter(args, ctx) { | |
if (ctx.worldData.player.getVolume() <= 95) { | |
ctx.worldData.player.setVolume(ctx.worldData.player.getVolume() + 5); | |
} | |
console.log('playerVolume = ' + ctx.worldData.player.getVolume()); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
function enter(args, ctx) { | |
if (ctx.worldData.player.getVolume() > 5) { | |
ctx.worldData.player.setVolume(ctx.worldData.player.getVolume() - 5); | |
} | |
console.log('playerVolume = ' + ctx.worldData.player.getVolume()); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
// Create YouTube player | |
function onYouTubeIframeAPIReady(args, ctx) { | |
console.log('onYouTubeIframeAPIReady'); | |
ctx.worldData.player = new YT.Player("player", { | |
width: "480", | |
height: "270", | |
videoId: args.videoId, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ctx.buttonValueCallback = function(ctx){ | |
return function(event) { | |
if(event.controllerId === ctx.controllerId && event.id === buttonMapping[args.buttonSelect]){ | |
if(event.value > 0.5 && ctx.previousValue <= 0.5){ | |
if(ctx.grabEntity && !ctx.grabbedEntity && ctx.grabEntity.hasTag(args.grabTag)){ | |
if(ctx.grabEntity.transformComponent.parent){ | |
ctx.grabEntity.transformComponent.parent.detachChild(ctx.grabEntity.transformComponent, true); | |
} | |
ctx.entity.transformComponent.attachChild(ctx.grabEntity.transformComponent,true); | |
ctx.grabbedEntity = ctx.grabEntity; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
// The sumerian object can be used to access Sumerian engine | |
// types. | |
// | |
/* global sumerian */ | |
// Called when play mode starts. | |
// | |
function setup(args, ctx) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
// The sumerian object can be used to access Sumerian engine | |
// types. | |
// | |
/* global sumerian */ | |
// Called when play mode starts. | |
// | |
function setup(args, ctx) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"date":1535162613947,"scene":"test-metrics","event":"start","cookie":"dce5e0cd-4880-4d00-84e1-1c6bc4e28eca"} | |
{"date":1535162796887,"scene":"test-metrics","event":"stop","cookie":"dce5e0cd-4880-4d00-84e1-1c6bc4e28eca"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
// The sumerian object can be used to access Sumerian engine | |
// types. | |
// | |
/* global sumerian */ | |
// Ref: https://docs.aws.amazon.com/sdk-for-javascript/v2/developer-guide/kinesis-examples-capturing-page-scrolling.html | |
// ctx.worldData.firehose |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<CORSConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/"> | |
<CORSRule> | |
<AllowedOrigin>https://us-west-2.sumerian.aws</AllowedOrigin> | |
<AllowedMethod>PUT</AllowedMethod> | |
<AllowedHeader>*</AllowedHeader> | |
</CORSRule> | |
</CORSConfiguration> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Effect": "Allow", | |
"Action": [ | |
"firehose:PutRecord", | |
"firehose:PutRecordBatch" | |
], | |
"Resource": [ |
NewerOlder