chriskwan / whiteboard

Collaborate using HTML5 Canvas and PeerJS
http://chriskwan.github.io/whiteboard/
10 stars 1 forks source link

Support mobile / touch interactions #2

Open chriskwan opened 9 years ago

chriskwan commented 9 years ago

It would be great to use this on a phone or touch screen device.

chriskwan commented 9 years ago

There are some event placeholders but the touch events aren't working right. Need to actually read about how to deal with touch.

chriskwan commented 9 years ago

I fixed the touch events :+1: but looks like support for WebRTC (which is what PeerJS uses) on mobile is very limited :-1:

See: http://caniuse.com/#search=webrtc

So it doesn't look like there is currently a good solution for iOS :-1:

Though, Lily tried Chrome for Android and it worked! :100:

I also tried http://www.openwebrtc.org/bowser/. It gets a PeerID but when trying to connect, I get a different error:

PeerJS:  ERROR Error: Failed to set remote offer sdp: Called with SDP without DTLS fingerprint.
peer.js:1476 
PeerJS:  Failed to setRemoteDescription,  Failed to set remote offer sdp: Called with SDP without DTLS fingerprint.