miroslavpejic85 / mirotalk

🚀 WebRTC - P2P - Simple, Secure, Fast Real-Time Video Conferences Up to 4k and 60fps, compatible with all browsers and platforms.
https://p2p.mirotalk.com
GNU Affero General Public License v3.0
2.6k stars 502 forks source link

[feature] Add display mode for peer #207

Closed yanky2000 closed 3 months ago

yanky2000 commented 3 months ago

Title: Adds display mode for peers

TLDR;

Adds button in the left menu to start controlled "Display mode" for peers - aka "Property demo" by location. During the demo all users can browse through available pictures of the same property individually, but the property itself can be changed only by Initiator.

Description: Two proxy API routes were added to store API keys & endpoint securely on the server. The aggregated data (property list, adjusted according to a user-specified location) is calculated on the initiator's client side and stored in indexdb. When the carousel is initiated, it signals its "actions" to peer users via news events. The first "start" event goes with a payload of an aggregated property list, through which everybody will browse afterwards.

deps:

** Add keys & endpoint to .env file to run.

I tried to stay consistent with the techniques used in the rest of the codebase, however there are some key points to consider: