Live data from Hacker News

Show HN: Swip.js, a library to create multi device experiments

github.com

1–10 of 19 posts

Re: Show HN: Swip.js, a library to create multi device experiments

#2
Using the devices as planes for the golf demo is incredibly creative!

https://www.youtube.com/watch?v=ZE0gxa-p8HY

I know you can use HTML5 DeviceOrientation for angle and the "swip" for relative positioning. But how did you get the physical size of the screen of each device?

Re: Show HN: Swip.js, a library to create multi device experiments

#3
post #2

Using the devices as planes for the golf demo is incredibly creative! https://www.youtube.com/watch?v=ZE0gxa-p8HY I know you can use HTML5 DeviceOrientation for angle and the "swip" for relative positioning. But how did you get the physical size of the screen of each device?

We haven't figured out a way to do this automatically. Currently we prompt the user to enter the size of the device when the app is opened for the first time.

Re: Show HN: Swip.js, a library to create multi device experiments

#6
post #2

Using the devices as planes for the golf demo is incredibly creative! https://www.youtube.com/watch?v=ZE0gxa-p8HY I know you can use HTML5 DeviceOrientation for angle and the "swip" for relative positioning. But how did you get the physical size of the screen of each device?

We haven't figured out a way to do this automatically. Currently we prompt the user to enter the size of the device when the app is opened for the first time.

I don't think it's possible unless you add an app.

One solution would be create a companion app that determines the physical screen size, then makes that available to your network via web sockets.

There our a few steps I left out here but it's possible.

The app could be optional - if its installed that device will have fully automatic configuration. If it's not installed, you just fall back to your user prompt.

Re: Show HN: Swip.js, a library to create multi device experiments

#7
Does anyone know how well you can time via an app?

I wonder how it sounds to play sound across devices. Streaming and clock syncing can happen beforehand, just the playback has to be very sync to an absolute timing.

Maybe one can do something crude sound propagation synthesis by playing with timing, sound runtime, gps and a crowd. If you synthesize the sound the app even stays very small. You could e.g. make an ocean wave roll through the audience (when every device knows where it is and knows the exact time of when the wave will hit that position).

Same could work with devices as pixels, but I don't find it that interesting.

Re: Show HN: Swip.js, a library to create multi device experiments

#8
post #2

Using the devices as planes for the golf demo is incredibly creative! https://www.youtube.com/watch?v=ZE0gxa-p8HY I know you can use HTML5 DeviceOrientation for angle and the "swip" for relative positioning. But how did you get the physical size of the screen of each device?

We haven't figured out a way to do this automatically. Currently we prompt the user to enter the size of the device when the app is opened for the first time.

Why not two swips (maybe even single, two-finger swips)? that's enough for relative sizing

Re: Show HN: Swip.js, a library to create multi device experiments

#9

Does anyone know how well you can time via an app? I wonder how it sounds to play sound across devices. Streaming and clock syncing can happen beforehand, just the playback has to be very sync to an absolute timing. Maybe one can do something crude sound propagation synthesis by playing with timing, sound runtime, gps and a crowd. If you synthesize the sound the app even stays very small. You could e.g. make an ocean…

If you are playing sound you can use the microphone for synchronisation.

Re: Show HN: Swip.js, a library to create multi device experiments

#10
post #2

Using the devices as planes for the golf demo is incredibly creative! https://www.youtube.com/watch?v=ZE0gxa-p8HY I know you can use HTML5 DeviceOrientation for angle and the "swip" for relative positioning. But how did you get the physical size of the screen of each device?

We haven't figured out a way to do this automatically. Currently we prompt the user to enter the size of the device when the app is opened for the first time.

[deleted]
Post reply on HN