Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Whiteboard/Drawing? #40

Open
EddiesTech opened this issue Apr 17, 2020 · 8 comments
Open

Whiteboard/Drawing? #40

EddiesTech opened this issue Apr 17, 2020 · 8 comments
Labels
design feature A new feature

Comments

@EddiesTech
Copy link

Hi there,
There is this great feature on Zoom where you can set up a whiteboard where members of the meeting/call can draw on it. This is great for learning or just fun (e.g. with games). Would it be possible to add this to Zipcall? It would be great if it could!

@Chaphasilor
Copy link
Collaborator

That sounds really interesting but I guess it will require some time to implement that.

Currently we don't have that much time, but if you feel like implementing this, feel free to open a PR!

Or you could try looking for ready-made JavaScript Canvas libraries for that?

@Chaphasilor Chaphasilor added design feature A new feature labels Apr 17, 2020
@EddiesTech
Copy link
Author

I found this: https://github.com/lovasoa/whitebophir
It's under GPL so I assume if I can find a way to implement it, it would work?

@Chaphasilor
Copy link
Collaborator

It uses socket.io as well, which might be useful. I'm not sure however if this will work nicely with the zipcall server.

Also, this doesn't seem to be decentralized, so implementing this would prevent zipcall from being fully dezentralized as well.

Maybe, depending on the license, we can take the whiteboard code and make the synchronization happen ourselves, peer-to-peer?
We could use WebRTC data streams for that, like the ones we use for live captions and chat and such...

@ianramzy
Copy link
Owner

Yeah we could send data over a webRTC stream, I also don't love the UI of the repo you linked, I am sure we can find something better

@hialvaro
Copy link

Maybe this one can help. It's using WebRTC: https://github.com/feross/whiteboard

@Chaphasilor
Copy link
Collaborator

it's not being maintained any more :/

@holtwick
Copy link

holtwick commented Jun 16, 2020

Maybe you find this example useful: https://github.com/holtwick/peer2school/blob/master/src/components/app-whiteboard.vue

It uses https://yjs.dev/ which is an amazing real time framework which will turn out being useful when tying to implement a whiteboard.

Also take a look at https://bigbluebutton.org/developers/ as an example for a whteboard that is quite mature.

And probably https://miro.com/ as the high-end ;)

@Chaphasilor
Copy link
Collaborator

Maybe you find this example useful: https://github.com/holtwick/peer2school/blob/master/src/components/app-whiteboard.vue

It uses https://yjs.dev/ which is an amazing real time framework which will turn out being useful when tying to implement a whiteboard.

Also take a look at https://bigbluebutton.org/developers/ as an example for a whteboard that is quite mature.

And probably https://miro.com/ as the high-end ;)

I think the first two are the most interesting, although I think yjs.dev won't integrate well with Zipcall, because there would be two parallel connection, and I don't know how easy it would be to send yjs.dev's traffic over Zipcall's WebRTC connection. It might be possible though.

The Vue component you've linked also looks promising, it also seems to be relatively dependency-free, so we might be able to reverse-engineer it to use vanilla JS or jQuery. Synching the canvas shouldn't be too problematic either, we could write any changes the user makes into an outgoing buffer that is emptied and transmitted every couple milliseconds. I might play around with this a bit later...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
design feature A new feature
Projects
None yet
Development

No branches or pull requests

5 participants