BBB Chat Via API?

384 views
Skip to first unread message

S

unread,
Jul 14, 2020, 9:48:04 AM7/14/20
to bigblueb...@googlegroups.com
Is there a way for me to send a chat message to the Meeting via API? I don't see an API but just wondering if there is a workaround to this? 

Use Case: I am trying to allow a Live Streaming watching users to Ask Questions to the Teacher. 

manis...@gmail.com

unread,
Jul 14, 2020, 10:29:44 AM7/14/20
to BigBlueButton-dev
if you start the meetings with record=true, in /var/bigbluebutton/recordings/raw/<internal meeting id> there should be a file events.xml. this will contain all the activity which happened in the meeting including chat.

 You will need to write your own api to process this xml data, extract chat from it and send it back as required by you.

-manish

Victor Manuel Agudelo

unread,
Jul 14, 2020, 11:20:19 AM7/14/20
to bigblueb...@googlegroups.com
Hey my friend check my function to upload the file events.xml when this is generated.


Best Regards
 

--
You received this message because you are subscribed to the Google Groups "BigBlueButton-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bigbluebutton-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bigbluebutton-dev/f65ecc5c-6b0a-4c18-bc2e-b9e883cb819bn%40googlegroups.com.

S

unread,
Jul 14, 2020, 11:47:26 PM7/14/20
to bigblueb...@googlegroups.com
I think both of you are mistaken. I am looking at sending a message to the Meeting room via Chat when it is on going LIVE  ..not trying to extract the chat post the meeting. 

Jibon Costa

unread,
Jul 15, 2020, 12:47:26 AM7/15/20
to BigBlueButton-dev
There is no API available for this. You'll require to modify BBB to add this functionality. 

On Wednesday, July 15, 2020 at 9:47:26 AM UTC+6, S wrote:
I think both of you are mistaken. I am looking at sending a message to the Meeting room via Chat when it is on going LIVE  ..not trying to extract the chat post the meeting. 
On Tue, 14 Jul 2020 at 8:50 PM, Victor Manuel Agudelo <vicm...@gmail.com> wrote:
Hey my friend check my function to upload the file events.xml when this is generated.


Best Regards
 

El mar., 14 de jul. de 2020 a la(s) 09:29, manis...@gmail.com (manis...@gmail.com) escribió:
if you start the meetings with record=true, in /var/bigbluebutton/recordings/raw/<internal meeting id> there should be a file events.xml. this will contain all the activity which happened in the meeting including chat.

 You will need to write your own api to process this xml data, extract chat from it and send it back as required by you.

-manish

On Tuesday, 14 July 2020 at 19:18:04 UTC+5:30 sraj...@gmail.com wrote:
Is there a way for me to send a chat message to the Meeting via API? I don't see an API but just wondering if there is a workaround to this? 

Use Case: I am trying to allow a Live Streaming watching users to Ask Questions to the Teacher. 

--
You received this message because you are subscribed to the Google Groups "BigBlueButton-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bigblueb...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "BigBlueButton-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bigblueb...@googlegroups.com.

Martin Thomas Schrott

unread,
Jul 15, 2020, 2:08:18 AM7/15/20
to bigblueb...@googlegroups.com, Victor Manuel Agudelo

On Tuesday, 14 July 2020 at 19:18:04 UTC+5:30 sraj...@gmail.com wrote:
Is there a way for me to send a chat message to the Meeting via API? I don't see an API but just wondering if there is a workaround to this? 


you can use our bigbluebutton-livestreaming tool to inject chat messages.

see

https://github.com/aau-zid

in the livestreaming examples you will find the chat stuff to use.


there might be a solution without joining and using selenium by writing directly into the db, but we did not find the time to develop this...

cheers

Martin


Use Case: I am trying to allow a Live Streaming watching users to Ask Questions to the Teacher. 
--
You received this message because you are subscribed to the Google Groups "BigBlueButton-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bigbluebutton-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bigbluebutton-dev/f65ecc5c-6b0a-4c18-bc2e-b9e883cb819bn%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "BigBlueButton-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bigbluebutton-...@googlegroups.com.

Ragesh Antony

unread,
Jul 15, 2020, 3:46:08 AM7/15/20
to bigblueb...@googlegroups.com
How this live streaming works?

Does it live stream a whole BBB meeting UI with all webcams,chats, whiteboard and screen sharing?

Please provide a screenshot of RTMP streaming?

Martin Thomas Schrott

unread,
Jul 15, 2020, 4:14:03 AM7/15/20
to bigblueb...@googlegroups.com, Ragesh Antony

please read the README on the page - this will answer the question.

you can just try it out to see how it works.

if you do not understand how to set it up - read the issues, there are some cases that may help setting up.

cheers

Martin

Sam Raj

unread,
Jul 15, 2020, 4:42:23 AM7/15/20
to bigblueb...@googlegroups.com, Ragesh Antony
can I live stream to multiple RTMP URLS?

Martin Thomas Schrott

unread,
Jul 15, 2020, 4:48:02 AM7/15/20
to bigblueb...@googlegroups.com, Sam Raj, Ragesh Antony


Am 15.07.2020 um 10:42 schrieb Sam Raj:
can I live stream to multiple RTMP URLS?


technically yes, we did not try it and have not implimented that, as we stream to a media server which then could multiply to other endpoints.

you just would have to start the ffmpeg process for each rtmp stream you need. - but it will need lot's of resources.


why would you need multiple streams? you could have a look at restream.io or other platforms, that do exactly this.


hth

Martin


Antonio Guirado

unread,
Jul 15, 2020, 5:01:40 AM7/15/20
to bigblueb...@googlegroups.com, Martin Thomas Schrott, Sam Raj, Ragesh Antony

Hi,

you can edit code and use ffmpeg commands to do a "tee" to encode only one time and have 2 or more outputs (you don't need more resources).

For example, I use the following command (see mainly bold parameters):

$FFMPEG -thread_queue_size 1024 -f x11grab -draw_mouse 0 -s 1920x1080 -i :1000 -f alsa -i pulse -ac 2 -c:a aac -b:a 64k -threads 0 -flags +global_header -c:v libx264 -pix_fmt yuv420p -s 1920x1080 -preset ultrafast  -threads 0
-f tee -map 0:0 -map 1:0 "[f=flv]$BBB_STREAM_URL1|[f=flv]$BBB_STREAM_URL2"

Regards

Sam Raj

unread,
Jul 15, 2020, 6:27:01 AM7/15/20
to Antonio Guirado, bigblueb...@googlegroups.com, Martin Thomas Schrott, Ragesh Antony
Is there a way to Hide/Show presentation when Live Streaming? When someone is talking but not showing a presentation, I would like the Presentation to be hidden and when I want...show presentation.

The presentation occupies 80% of the screen and people talking shows just as small videos in Live Stream.

If I hide the presentation by default to give more screen to Video of Presenters, the presentation just doesn't show up at all in Live Stream.

Martin Thomas Schrott

unread,
Jul 15, 2020, 6:30:54 AM7/15/20
to bigblueb...@googlegroups.com, Sam Raj, Antonio Guirado, Ragesh Antony

Am 15.07.2020 um 12:26 schrieb Sam Raj:
> Is there a way to Hide/Show presentation when Live Streaming? When
> someone is talking but not showing a presentation, I would like the
> Presentation to be hidden and when I want...show presentation.


I don't think this is possible currently.

there are wishes of users for bbb to let the speaker hide and show the
presentation, this would also solve the problem for liveStreaming. So
let's hope someone does impliment this in bbb.

cheers


S

unread,
Jul 15, 2020, 6:35:42 AM7/15/20
to bigblueb...@googlegroups.com, Sam Raj, Antonio Guirado, Ragesh Antony
How will I pass the chat message via the Live Steam as and when users send that message? Any guidance will be great help.

Thanks for your help. Appreciate it.

Sent from my iPhone

> On 15-Jul-2020, at 4:00 PM, Martin Thomas Schrott <li...@mtsonline.at> wrote:
>
> 
> --
> You received this message because you are subscribed to the Google Groups "BigBlueButton-dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to bigbluebutton-...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/bigbluebutton-dev/0eb4bb9a-f1cb-0405-a341-4ec2df248b83%40mtsonline.at.

Antonio Guirado

unread,
Jul 15, 2020, 6:42:15 AM7/15/20
to Martin Thomas Schrott, bigblueb...@googlegroups.com, Sam Raj, Ragesh Antony
Hello,

you can delete all presentations (included default) from BBB page where
moderatos upload pdf/ppts. In that moment, the presentation area
dissapear and video are shown bigger. This must be maden by a moderator
and all users seen the change. When you want to see the presentation
area, you must upload a pdf or ppt and select it. I don't know if it is
a right solution for you but we use it after explain the presentation
and to do questions.

Regards

Martin Thomas Schrott

unread,
Jul 15, 2020, 7:09:07 AM7/15/20
to bigblueb...@googlegroups.com, S, Sam Raj, Antonio Guirado, Ragesh Antony

Am 15.07.2020 um 12:35 schrieb S:
> How will I pass the chat message via the Live Steam as and when users send that message? Any guidance will be great help.
>
> Thanks for your help. Appreciate it.


have a look at the examples with chat. it are just two files and a few
lines of code.

the messages are send via a web / html form to redis

and from there pushed into the chat.

hth

Martin

Sam Raj

unread,
Jul 15, 2020, 7:39:33 AM7/15/20
to Martin Thomas Schrott, bigblueb...@googlegroups.com, S, Antonio Guirado, Ragesh Antony
@Antonio Guirado
there is no option to delete the default presentation. How did you accomplish this? Thanks


Jibon Costa

unread,
Jul 15, 2020, 7:43:41 AM7/15/20
to BigBlueButton-dev
Why you want to delete presentation? Instated of you can hide/unhide by passing params in Join API call. Have a look here: https://docs.bigbluebutton.org/2.2/customize.html#passing-custom-parameters-to-the-client-on-join

On Wednesday, July 15, 2020 at 5:39:33 PM UTC+6, Sam Raj wrote:
there is no option to delete the default presentation. How did you accomplish this? Thanks


On Wed, Jul 15, 2020 at 4:39 PM Martin Thomas Schrott <li...@mtsonline.at> wrote:

Am 15.07.2020 um 12:35 schrieb S:
> How will I pass the chat message via the Live Steam as and when users send that message? Any guidance will be great help.
>
> Thanks for your help. Appreciate it.


have a look at the examples with chat. it are just two files and a few
lines of code.

the messages are send via a web / html form to redis

and from there pushed into the chat.

hth

Martin


> Sent from my iPhone
>
>> On 15-Jul-2020, at 4:00 PM, Martin Thomas Schrott <li...@mtsonline.at> wrote:
>>
>> 
>>> Am 15.07.2020 um 12:26 schrieb Sam Raj:
>>> Is there a way to Hide/Show presentation when Live Streaming? When someone is talking but not showing a presentation, I would like the Presentation to be hidden and when I want...show presentation.
>>
>> I don't think this is possible currently.
>>
>> there are wishes of users for bbb to let the speaker hide and show the presentation, this would also solve the problem for liveStreaming. So let's hope someone does impliment this in bbb.
>>
>> cheers
>>
>>
>> --
>> You received this message because you are subscribed to the Google Groups "BigBlueButton-dev" group.
>> To unsubscribe from this group and stop receiving emails from it, send an email to bigblueb...@googlegroups.com.

Jibon Costa

unread,
Jul 15, 2020, 7:46:32 AM7/15/20
to BigBlueButton-dev
Martin, Where this PHP Redis script need to host? in BBB server? Because I have another script written in nodejs & want to try there.


On Wednesday, July 15, 2020 at 5:09:07 PM UTC+6, Martin Thomas Schrott wrote:

Am 15.07.2020 um 12:35 schrieb S:
> How will I pass the chat message via the Live Steam as and when users send that message? Any guidance will be great help.
>
> Thanks for your help. Appreciate it.


have a look at the examples with chat. it are just two files and a few
lines of code.

the messages are send via a web / html form to redis

and from there pushed into the chat.

hth

Martin


> Sent from my iPhone
>
>> On 15-Jul-2020, at 4:00 PM, Martin Thomas Schrott <li...@mtsonline.at> wrote:
>>
>> 
>>> Am 15.07.2020 um 12:26 schrieb Sam Raj:
>>> Is there a way to Hide/Show presentation when Live Streaming? When someone is talking but not showing a presentation, I would like the Presentation to be hidden and when I want...show presentation.
>>
>> I don't think this is possible currently.
>>
>> there are wishes of users for bbb to let the speaker hide and show the presentation, this would also solve the problem for liveStreaming. So let's hope someone does impliment this in bbb.
>>
>> cheers
>>
>>
>> --
>> You received this message because you are subscribed to the Google Groups "BigBlueButton-dev" group.
>> To unsubscribe from this group and stop receiving emails from it, send an email to bigblueb...@googlegroups.com.

Martin Thomas Schrott

unread,
Jul 15, 2020, 7:50:23 AM7/15/20
to bigblueb...@googlegroups.com, Jibon Costa


Am 15.07.2020 um 13:46 schrieb Jibon Costa:
Martin, Where this PHP Redis script need to host? in BBB server? Because I have another script written in nodejs & want to try there.


Hi Jibon,


no, you can host it where ever you want to, it just needs access to the redis server of the liveStreaming script, so this can fetch the messages from there.

hth

Martin


To unsubscribe from this group and stop receiving emails from it, send an email to bigbluebutton-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bigbluebutton-dev/bfe2764e-4b6b-46b5-bfb5-6ee25e94e60do%40googlegroups.com.

Antonio Guirado

unread,
Jul 15, 2020, 7:52:32 AM7/15/20
to bigblueb...@googlegroups.com, Jibon Costa

Hello,

our default presentation has a name different from "default". You can delete any presentation if its name is differente a "default". We want to hide the presentation area at the end of the meeting when the questions of the users begin so that cameras are seen better.

We do not know the userdata-bbb_force_restore_presentation_on_new_events=true paremeter. We will check it.

Thank you very much.

Regards

To unsubscribe from this group and stop receiving emails from it, send an email to bigbluebutton-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bigbluebutton-dev/39926569-4d7b-4daa-8a95-29af596798e7o%40googlegroups.com.

Jibon Costa

unread,
Jul 15, 2020, 7:54:40 AM7/15/20
to BigBlueButton-dev
Thanks, that's interesting. I did this from html5 client directly.

Antonio Guirado

unread,
Jul 15, 2020, 8:04:14 AM7/15/20
to bigblueb...@googlegroups.com, Jibon Costa

Hi,

I have interested in this feature but I can understand you code. If you see the code sendChatMessage.php there no reference to meetingID, username, etc..
Could you help me how this paremeters are send?.

Thank in advance.
Regards

<?php

if(!empty($_POST)) {
    $message = $_POST['message'];
    $redis = new Redis();
    $redis->pconnect('REDIS_HOST'); // REDIS_HOST hast to be the same as in BBB_REDIS_HOST
    $redis->publish('REDIS_CHANNEL', $message); // REDIS_CHANNEL hast to be the same as in BBB_REDIS_CHANNEL
    echo "Message published\n";

To unsubscribe from this group and stop receiving emails from it, send an email to bigbluebutton-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bigbluebutton-dev/10a17d17-9c01-4513-8fe1-ca44e60b7e51o%40googlegroups.com.

Martin Thomas Schrott

unread,
Jul 15, 2020, 8:28:57 AM7/15/20
to bigblueb...@googlegroups.com, Jibon Costa


Am 15.07.2020 um 13:54 schrieb Jibon Costa:
Thanks, that's interesting. I did this from html5 client directly.


if you have a little time available you could try to bypass the selenium part by injecting the messages from the redis db directly into the meeting.


here is what I collected as starting point - ideally it should be an api call that does allow to send messages I guess. But it also would be okay to do it via an python script for now:


* an example how this works for presentations:

https://groups.google.com/forum/?utm_medium=email&utm_source=footer#!msg/bigbluebutton-dev/thG_j8UUeoQ/fP3sT-gEAgAJ


* and here the explanations of Pedro how it would work:

https://groups.google.com/forum/?utm_medium=email&utm_source=footer#!msg/bigbluebutton-dev/61Em4ZfaQ7A/EKBantdGBwAJ


would be great if you could get us all a step further jibon :-)


cheers

Martin



To unsubscribe from this group and stop receiving emails from it, send an email to bigbluebutton-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bigbluebutton-dev/10a17d17-9c01-4513-8fe1-ca44e60b7e51o%40googlegroups.com.

Martin Thomas Schrott

unread,
Jul 15, 2020, 8:44:11 AM7/15/20
to bigblueb...@googlegroups.com, Antonio Guirado, Jibon Costa

Antonio,


the php script just sends the massage to the redis db.

have a look at the python script that injects the chat messages into bbb. it is in the parent folder of the examples.

hth

Martin

Sam Raj

unread,
Jul 15, 2020, 9:04:23 AM7/15/20
to bigblueb...@googlegroups.com

Antonio Guirado

unread,
Jul 15, 2020, 9:55:43 AM7/15/20
to bigblueb...@googlegroups.com, Sam Raj

Hello,

We use BBB 2.2.14. I send you a screenshot where you can see that we have the delete button enabled and we can delete de "default" presentation.

Regards.

IMG_20200715_155134.jpg

S

unread,
Jul 15, 2020, 10:44:44 AM7/15/20
to bigblueb...@googlegroups.com, Sam Raj
@antonio

It will be great if you can share the code for python just like your PHP code also in case you were able to do it. Unfortunately I am not familiar with Python. 

It will be greatly appreciated 
Thanks. 

Sent from my iPhone

On 15-Jul-2020, at 7:25 PM, Antonio Guirado <amgui...@gmail.com> wrote:


To view this discussion on the web visit https://groups.google.com/d/msgid/bigbluebutton-dev/e89cfe6c-9845-a6ea-08ea-0ca22aa83af5%40gmail.com.
<IMG_20200715_155134.jpg>

Antonio Guirado

unread,
Jul 15, 2020, 10:55:44 AM7/15/20
to bigblueb...@googlegroups.com, S, Sam Raj

S

unread,
Jul 15, 2020, 11:30:15 AM7/15/20
to Antonio Guirado, bigblueb...@googlegroups.com, Sam Raj
I have answered multiple questions which were asked in that repository based on our conversation here in this thread. 

Opened new ones too. Thanks Antonio. 

Sent from my iPhone
Reply all
Reply to author
Forward
0 new messages