Comments (1)
Only WebRTC 1.0 compatible browsers are supported:
- Chrome (both desktop and Android)
- Firefox (both desktop and Android)
- Opera (both desktop and Android)
Following are NOT supported:
- Chrome on iOS
- Safari on any platform
- IE or MSEdge
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);
from canvas-designer.
Related Issues (20)
- I want to change canvas design to canvas text editor(rich html)
- Live Marking
- Can we add eraseall button in Canvas? Or how to delete added pdf by one button (not undo)? HOT 1
- Canvas designer not reponsive. Help me
- canvas designer add extra tools
- How can I get a transparent background? HOT 1
- can't get them to sync?
- Clearing canvas not syncing between peers HOT 2
- How voice send voice send recive?
- Fill with arc
- Failed to execute 'setLocalDescription'
- Can't share session between chrome and firefox
- How to drag and drop an image to canvas HOT 1
- How I can use another language without Google Input Tools?
- Response & mobile friendly
- Can someone help me how to set it up for client js and server js using socket.io
- Mousemove sync
- Default Background Image
- Eraser size
- socket.io connection issue
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from canvas-designer.