Glimesh / glimesh.tv

Glimesh is a next generation live streaming platform built by the community, for the community.
https://glimesh.tv
Other
461 stars 77 forks source link

Add Interactive #867

Closed aMytho closed 1 year ago

aMytho commented 1 year ago

Adds Interactive to Glimesh See building Glimesh post for more info.

Current Status

Currently, the zip files are stored with waffle. The extracted files (what are served to the user) are stored and served locally. This will need to be changed in production. A few other changes will need to be made but I wanted to get some of this reviewed before going any further.

Other Changes

Run the example project

An example project is attached. You will need to unzip it and make the following changes. exampleProjectConfetti.zip

Now to enable it - Channel settings -> Interactive

Go to your channel and press the interactive button. It should display the project.

Click to show confetti. Alternativly, send the mutation over the API as shown in the js file. You don't need the interactive scope but you will need the ID of your channel (sessionID)!

aMytho commented 1 year ago

Updated to no longer use zip files. Using a waffle_ecto PR, we are able to upload arrays instead of just single items. Interactive projects are now an array of files.

A default project will be loaded if the user has it enabled, but no project has been uploaded. The Interactive button will not be shown if the user doesn't have it enabled.

The last thing to do is to ensure old files are being removed from storage (see discord conversation)