Skip to content

Instantly share code, notes, and snippets.

View AndreasH96's full-sized avatar
🧙‍♂️

Andreas Häggström AndreasH96

🧙‍♂️
View GitHub Profile
var snappableContentHash = "gett"
// https://media.npr.org/assets/img/2016/04/16/gettyimages-457299112_wide-4c214dcd4c434f5aaf370c5e948f1dd4e73af6e2-s800-c85.jpg
var snappedToWallHash = "ta16"
// caching via URL so when not uploaded from device, works well
// https://www.thedyslexiashop.co.uk/media/catalog/product/cache/1/image/9df78eab33525d08d6e5fb8d27136e95/t/a/ta162.png
if (snapping) clearInterval(snapping)
var snapping = setInterval( ifNearbySnap, 100 )
var hubsProxy = "https://hubs-spatializedinternal-link-cors-proxy.vrtohubs.workers.dev/"
var playlist = [
"https://vrtovideostreaming.s3.us-east-2.amazonaws.com/Accessibility/CC+John+Avila+-+Designing+Accessible+Experiences+for+VR+and+AR+720p.mp4",
"https://vrtovideostreaming.s3.us-east-2.amazonaws.com/Accessibility/CC+VRTO2020+Wishplay+and+VR+-+David+Parker+-+Final.mp4"
]
var currentVideo = 0
function videoEnded(){
console.log('video ended')
if (currentVideo == playlist.length-1 ) {