Disclamer: My assumptions are probably wrong.
I have been looking at quite a lot of random webrtc stuff lately and it has left me very confused as to 'where its at'. From what I can tell this library looks like it is a/the leading one.
What I have seen so far is that the user must grant permission (some sort of sandbox) to initiate interaction with a peer. Now I can understand this if the interaction wanted access to your video or audio.
I what I am very cloudy about is p2p data shareing. To be specific I would like to share a variable between all clients (however many clients are on the site at the time? maybe lots).
Say my variable is an object: {user_id:1,user_name:'bob',x:145,y:21087',user_img:'foo.png'}
If there are 1000 users on the site don't want a user to have to grant permissions 1000 times to get this data nor do I want the user to have to grant permission to the app to share this trivial info with all the other users (I feel that clicking confirm ruins the experience).
If so would there be a way around this... Is there a way of transmitting things to a shared global object between the peers so you are not directly sharing?
PS: just to be clear I don't want to share audio or video at all at this time, just data