vicariousdrama / cornychat

🌽 Corny Chat is an open source audio space built on Jam that integrates Nostr and Lightning
https://cornychat.com
GNU Affero General Public License v3.0
19 stars 6 forks source link

Slides - Add a slideshow timer option to room settings #43

Open vicariousdrama opened 5 months ago

vicariousdrama commented 5 months ago

MarkπŸ’βš‘οΈπŸ«‚πŸ’œ 2h I'd like a slideshow feature timer - auto plays list with a set time delay in between each one 😎 Good update it's gonna be useful

See https://njump.me/nevent1qvzqqqqqqypzptvh8qps4wzvqnl6a3j2htwke35zev6sr5vn5hl3e99eqacfz42cqyghwumn8ghj7vf5xqhxvdm69e5k7tcpz9mhxue69uhkummnw3ezuamfdejj7qpqkz0tkq3lmqfazs4lkelytn6u72eyuejyew6u3d4xt8g39fp6m48sgt6w0j


Consider adding a room setting to allow setting a slideshow timer.

This could be a value where 0 = dont autochange, any positive number being seconds between changes. Defaulting to 0 for rooms so that this is treated as an opt-in feature.

Currently, the current slide is tracked as room state and gets saved to the backend and pushed to peers. Recommend refactoring this to be a new state pushed around through SFU to peers, but not saved to room state saved in backend as every change requires setting the updateTime which would prevent mods (including the one enabling it) from making room state updates if the frequency is too often (e.g., 1 second would be disastrous)