Keeping relevant data in daily prebuilt room when the owner leaves and comes back to the room.

Options

We are building video call application between a teacher and students using daily-js.

We use daily prebuilt callFrame for teacher screen and custom callObject for student screen. We share the data between teacher and students using app-message for chat and reactions and setUserData() for important data like which student is on spotlight.

However, we anticipate a situation that teacher leaves the daily room (intentionally or accidentally). In such scenario, important data that we synced across users using setUserData() is lost from teacher.

There is a function to update the room data, but it is only accessible through callObject.

Is there any suggestion for best practice to handle this situation?

Thanks,

Tomo

Answers