As part of the ongoing work now that Livestream is now part of the Events plugin, we’re making it simpler to create livestream events.
What’s changing
You no longer need to tag topics livestream, it’s now an attribute directly on the event.
When creating a new event, just supply a URL and a livestream toggle will appear. Toggle it on and you’re done! On creation the video will be embedded and a chat channel will appear.
Existing livestream tagged topics will be migrated automatically.
These site settings are being removed:
livestream_enabledlivestream_chat_allowed_groups
Livestream will now use existing chat and event permissions.
For developers
Livestream is now an attribute on the post event rather than a topic tag.
On the front-end you can check topic.has_livestream, server-side you can check topic.first_post&.event&.livestream?
The event itself also serializes livestream directly, so anywhere you have the event object you can read event.livestream.
When a topic is a livestream, the body gets a new class:
body.livestream-topic {
/* your livestream styles */
}
This is part of a series of updates to events and livestream, keep an eye out for more features coming soon!
