Try it out: https://el3015.itp.io:8085/main.html
Code here: https://github.com/emilylin-itp/live-web/tree/gh-pages/wk5/wk5_peergarden
For this assignment, I focused mostly on just trying to understand how peer js and socket.io could work together. The functions I wanted to achieve were: a.) show my/users’ personal peer id, b.) be able to send the peer id of the other user via socket when the user “joins” the garden, c.) display the video stream to other user.
There are some logical mistakes in what I ended up with though. First of all, if you are the last person to join you would not see any one else’s live stream. There needs to be a way that once you join the garden you can see everyone who is in there. Not sure how I would do this exactly, but something to look into. Treated this more as socket + peerjs practice then as a project that is conceptually sound.
- If Peer to Peer/Web RTC is in between UDP + TCP, then what is an example of a a communication/app that is using completely UDP?
- Having issues with getting this “run your own peer server” to work: https://itp.nyu.edu/~sve204/liveweb_fall2019/peerserver.html
- Why can’t I appendChild for my video into a div? Following the syntax but not working…
- Why won’t the setAttribute or className(‘class name’) work on my video in the client side js?
Why won’t this add the class ‘ovideoStyle’? Below doesn’t work…
References mentioned in class: