Прямая трансляция Discourse

:information_source: Краткое описание Discourse Livestream позволяет создавать темы с прямой трансляцией, которые дают пользователям возможность присоединяться и участвовать в чате
:hammer_and_wrench: Ссылка на репозиторий https://github.com/discourse/discourse-livestream
:open_book: Руководство по установке Как установить плагины в Discourse

Возможности

Откройте любую тему, чтобы начать мероприятие с прямой трансляцией.

Мероприятие с прямой трансляцией включает:

  • видеопоток (например, с YouTube)
  • событие в календаре с использованием Discourse Calendar (and Event)
  • а также автоматически созданный чат, сопровождающий мероприятие

Настройка

Требуется наличие некоторых плагинов и настройка параметров

  1. Необходимо установить плагины чата и календаря.
    • Чат предустановлен в Discourse, а Календарь включён в тарифный план Business и выше; для самохостинга его можно установить отдельно.
  2. Необходимо включить следующие настройки сайта:
    • discourse livestream enabled
    • chat enabled
    • discourse post event enabled
    • calendar enabled
  3. Убедитесь, что параметр embeddable chat allowed paths содержит значение по умолчанию «/t». Изменять это значение не требуется.

Создание темы с прямой трансляцией

Чтобы создать тему с прямой трансляцией, заполните форму следующим образом — добавьте ссылку на трансляцию и детали события.

Используйте опцию создания события в композере

Вот пример текста, который вы можете использовать
https://www.youtube.com/watch?v=dQw4w9WgXcQ&ab_channel=RickAstley

[event start="2024-10-23 22:00" status="public" timezone="Asia/Singapore" allowedGroups="trust_level_0"]
[/event]

Перед нажатием на Создать тему обязательно добавьте тег livestream.

После этого вы увидите, что событие и прямая трансляция созданы, а также появился сопровождающий чат-канал справа.

Скриншот нового события с прямой трансляцией

Как только любой пользователь нажмёт Участвую на событии, он автоматически присоединится к чат-каналу и сможет участвовать в обсуждении!

Устранение неполадок

Чат не отображается в моей теме с прямой трансляцией

Убедитесь, что параметр embeddable chat allowed paths содержит значение по умолчанию «/t»

30 лайков

This looks like a very useful plugin! I just have a few questions:

  1. When the user presses on ‘Going’, will the chat open on the screen automatically?
  2. Is it compulsory to make a tag ‘livestream’ and use it on livestream topics?
  3. Is the channel closed or deleted automatically after the livestream is finished?
8 лайков

Thanks @NateDhaliwal!

The chat screen (on the right hand side of the screen) will be present on topic load. Meaning it will be there whether a user is “going” or not. The user is granted access to the chat channel once they select “going”, which also updates the chat channel by removing a CTA blocking the input to message (for non “going” users).

Currently, yes.

Currently, the channel is neither deleted nor closed after the livestream has ended or the livestream topic was closed.

9 лайков

This plugin would also be useful for appointments, such as meetings. During meeting preparation, topics often include discussions about better time slots or announcements of delays, etc. This clutters the thread with short-lived information.

Offering a linked chat for these kinds of topics could allow for easier housekeeping (chatter would be automatically removed after some time).

For this kind of functionality, it would suffice to add a setting for a list of tags where an accompanying chat should be enabled.
In addition, the button captions for different tags could be made customizable.

6 лайков

It seems this plugin support Youtube live and running OK in our forum. But we need some other livestream source like bilibili, does the plugin support those livestream source?

3 лайка

How well does this work on mobile?

@xish have you tried on mobile? I am guessing if bilibili has a player that works on discourse it will likely work. Easy test is to create a private category with a test group and test function

1 лайк

Hello and thanks for the plugin. I tried to install it and everything when ok. After I enabled the plugin I’ve made a new topic where I chose the livestream tag but the problem is when I try to find and press the Create Event I don’t see it at the dropdown menu. I tried to just add the code like you shared with dates etc but after posting code does nothing. I see the chat and everything but nowhere to press Going.

Thanks in advance!

1 лайк

As Natalie wrote, you must turn this on

You also have to reload the browser before it starts to appear in the editor.

5 лайков

Yeap! You’re absolutely right and I’m blind. I’ve read that we need the chat enabled, discourse post event enabled & calendar enable but my bad I thought It was included in the install. Now I took the time to reed what’s installed in the self-hosted and what’s not.

Thanks for your answer <3

5 лайков

Very cool! Has anyone tried this plugin with Owncast or PeerTube?

3 лайка

is this correct?

I don’t see the chat embedded and I clicked going in the event
The video is scheduled for tomorrow morning. Maybe the chat doesn’t appear until the stream is live?
edit to remove link to past stream

update:
The chat did not embed into the live stream topic as described in the op. Can someone help me figure out why this does not work?

I included livestream tag (I had to make one - is that right?)
chat is enabled and works in the main window
discourse post event enabled is set to /t (as shown above)
Calendar enabled (and works otherwise)
any hints?

1 лайк

This all sounds correct. You should be able to see chat show up even before the event starts.

Did you get it to work?

1 лайк

No, I’ve not been able to get the chat to appear in the post like shown in the original post.

Are you able to share a screenshot of what your topic looks like?

Thanks Natalie, I didn’t have the theme enabled :roll_eyes: :blush:

Edit to add:
I just want to thank Natalie and all the folks who make this such a great project!!! Discourse is awesome and the team and volunteers in this community make it great!!!

1 лайк

After a quick chat it looks like the plugin was not enabled, so we’re good here now.

I’ll update OP to make sure folks also make sure the livestream plugin is turned on.

5 лайков

What is the purpose of the option Minimal event: Hide Going/Not going buttons and invitees status ?

I edited an event and selected that, then it only showed the Interested button so there was no way to participate in the chat.

2 лайка

Recent topic on Monday map event

1 лайк

Can someone remind me how to hide content behind a Going RSVP status?

Do you have an example of what you mean here? You want to show content when someone hits “Going”?