Open amikar opened 7 years ago
Only WebRTC 1.0 compatible browsers are supported:
Following are NOT supported:
To support Safari+IE+MSEdge, you can use socket.io as signaling. In this case, CanvasDesigner will share/sync data using socket.io instead of using WebRTC.
You can check WebSocket usage here:
You can use any method: PHP-XHR-polling; socket.io; websockets; XMPP etc.
Here is socket.io usage:
socketio.on('messgae', function(data) {
designer.syncData(data);
});
designer.addSyncListener(function(data) {
socketio.emit('data', data);
});
Or complete usage:
var designer = new CanvasDesigner();
socketio.on('messgae', function(data) {
designer.syncData(data);
});
designer.addSyncListener(function(data) {
socketio.emit('data', data);
});
designer.setSelected('pencil');
designer.setTools({
pencil: true,
text: true
});
designer.appendTo(document.documentElement);
I am trying to make the connection work with safari but there seems to be a connection issue. The application works fine with chrome and firefox. does webrtc not work with safari ?